sf: stmicro: Fix code cleanup
- line over 80 characters - foo * bar -> foo *bar - removed unnecessary for single statement blocks. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
parent
4f44148322
commit
d0be616fe8
|
@ -150,7 +150,7 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
|
|||
},
|
||||
};
|
||||
|
||||
struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)
|
||||
struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 *idcode)
|
||||
{
|
||||
const struct stmicro_spi_flash_params *params;
|
||||
struct spi_flash *flash;
|
||||
|
@ -174,10 +174,9 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)
|
|||
|
||||
for (i = 0; i < ARRAY_SIZE(stmicro_spi_flash_table); i++) {
|
||||
params = &stmicro_spi_flash_table[i];
|
||||
if (params->id == id) {
|
||||
if (params->id == id)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (i == ARRAY_SIZE(stmicro_spi_flash_table)) {
|
||||
debug("SF: Unsupported STMicro ID %04x\n", id);
|
||||
|
|
Loading…
Reference in New Issue