svn commit: r298148 - head/sys/dev/flash

Adrian Chadd adrian at FreeBSD.org
Sun Apr 17 15:51:28 UTC 2016


Author: adrian
Date: Sun Apr 17 15:51:26 2016
New Revision: 298148
URL: https://svnweb.freebsd.org/changeset/base/298148

Log:
  undo previous commit - WIP was committed by accident.
  
  Noticed by: bz

Modified:
  head/sys/dev/flash/at45d.c

Modified: head/sys/dev/flash/at45d.c
==============================================================================
--- head/sys/dev/flash/at45d.c	Sun Apr 17 15:48:19 2016	(r298147)
+++ head/sys/dev/flash/at45d.c	Sun Apr 17 15:51:26 2016	(r298148)
@@ -121,7 +121,7 @@ static int
 at45d_get_status(device_t dev, uint8_t *status)
 {
 	uint8_t rxBuf[8], txBuf[8];
-	struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+	struct spi_command cmd;
 	int err;
 
 	memset(&cmd, 0, sizeof(cmd));
@@ -141,7 +141,7 @@ static int
 at45d_get_mfg_info(device_t dev, uint8_t *resp)
 {
 	uint8_t rxBuf[8], txBuf[8];
-	struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+	struct spi_command cmd;
 	int err;
 
 	memset(&cmd, 0, sizeof(cmd));
@@ -303,7 +303,7 @@ at45d_task(void *arg)
 	uint8_t rxBuf[8], txBuf[8];
 	struct at45d_softc *sc;
 	struct bio *bp;
-	struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+	struct spi_command cmd;
 	device_t dev, pdev;
 	caddr_t buf;
 	u_long len, resid;


More information about the svn-src-head mailing list