diff options
author | Jonathan Neuschäfer <[email protected]> | 2020-02-23 18:37:13 +0100 |
---|---|---|
committer | Tudor Ambarus <[email protected]> | 2020-02-27 09:58:39 +0200 |
commit | 2dcbfe365b130321b1b48cfa55f7bdad6baf85ad (patch) | |
tree | c3839617fd00fb07ea62366413e4644ccd726063 /lib/mpi/mpi-mod.c | |
parent | df5c21002cf4bb9c755c6330d101487c5d530c10 (diff) |
mtd: spi-nor: Refactor spi_nor_read_id()
- Don't use `tmp` for two purposes (return value, loop counter).
Instead, use `i` for the loop counter, and `ret` for the return value.
- Don't use tabs between type and name in variable declarations,
for consistency with other functions in spi-nor.c.
- Rewrite nested `if`s as `if (a && b)`.
- Remove `info` variable, and use spi_nor_ids[i] directly.
Signed-off-by: Jonathan Neuschäfer <[email protected]>
[[email protected]: change i's type from int to unsigned int,
reorder local variables]
Signed-off-by: Tudor Ambarus <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions