mirror of https://gitee.com/openkylin/linux.git
staging: wilc1000: wilc_spi: Remove unnecessary blank lines
Remove unnecessary blank lines to resolve checkpatch issue. Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8244d26909
commit
8d3496c393
|
@ -544,7 +544,6 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
ix += nbytes;
|
||||
sz -= nbytes;
|
||||
}
|
||||
|
@ -580,7 +579,6 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
|
|||
if (result == N_FAIL)
|
||||
break;
|
||||
|
||||
|
||||
/**
|
||||
* Read bytes
|
||||
**/
|
||||
|
@ -680,7 +678,6 @@ static int spi_data_write(struct wilc *wilc, u8 *b, u32 sz)
|
|||
sz -= nbytes;
|
||||
} while (sz);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -843,7 +840,6 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)
|
|||
static int isinit;
|
||||
|
||||
if (isinit) {
|
||||
|
||||
if (!wilc_spi_read_reg(wilc, 0x1000, &chipid)) {
|
||||
dev_err(&spi->dev, "Fail cmd read chip id...\n");
|
||||
return 0;
|
||||
|
@ -883,7 +879,6 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)
|
|||
g_spi.crc_off = 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* make sure can read back chip id correctly
|
||||
**/
|
||||
|
@ -924,14 +919,10 @@ static int wilc_spi_read_size(struct wilc *wilc, u32 *size)
|
|||
*size = tmp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
_fail_:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
|
||||
{
|
||||
struct spi_device *spi = to_spi_device(wilc->dev);
|
||||
|
@ -986,7 +977,6 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
|
|||
}
|
||||
|
||||
*int_status = tmp;
|
||||
|
||||
}
|
||||
|
||||
_fail_:
|
||||
|
|
Loading…
Reference in New Issue