Commit 89f3091d authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: removed the unnecessary commented code

Cleanup patch to remove the unused commented code.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 00c2903b
...@@ -431,10 +431,7 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz, ...@@ -431,10 +431,7 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
rix++; /* skip 1 byte */ rix++; /* skip 1 byte */
} }
/* do { */
rsp = rb[rix++]; rsp = rb[rix++];
/* if(rsp == cmd) break; */
/* } while(&rptr[1] <= &rb[len2]); */
if (rsp != cmd) { if (rsp != cmd) {
dev_err(&spi->dev, dev_err(&spi->dev,
...@@ -456,7 +453,6 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz, ...@@ -456,7 +453,6 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
if (cmd == CMD_INTERNAL_READ || cmd == CMD_SINGLE_READ || if (cmd == CMD_INTERNAL_READ || cmd == CMD_SINGLE_READ ||
cmd == CMD_DMA_READ || cmd == CMD_DMA_EXT_READ) { cmd == CMD_DMA_READ || cmd == CMD_DMA_EXT_READ) {
int retry; int retry;
/* u16 crc1, crc2; */
u8 crc[2]; u8 crc[2];
/* /*
* Data Respnose header * Data Respnose header
...@@ -620,7 +616,6 @@ static int spi_data_write(struct wilc *wilc, u8 *b, u32 sz) ...@@ -620,7 +616,6 @@ static int spi_data_write(struct wilc *wilc, u8 *b, u32 sz)
int ix, nbytes; int ix, nbytes;
int result = 1; int result = 1;
u8 cmd, order, crc[2] = {0}; u8 cmd, order, crc[2] = {0};
/* u8 rsp; */
/* /*
* Data * Data
...@@ -897,7 +892,6 @@ static int wilc_spi_init(struct wilc *wilc, bool resume) ...@@ -897,7 +892,6 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)
dev_err(&spi->dev, "Fail cmd read chip id...\n"); dev_err(&spi->dev, "Fail cmd read chip id...\n");
return 0; return 0;
} }
/* dev_err(&spi->dev, "chipid (%08x)\n", chipid); */
g_spi.has_thrpt_enh = 1; g_spi.has_thrpt_enh = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment