]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 22 Mar 2021 07:51:31 +0000 (09:51 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 31 Mar 2021 19:41:34 +0000 (22:41 +0300)
commit8b237c71bd9baa314d61955525e52394b509d9c9
tree044bf6d12f6a364b7494db2adc0492ee111c929f
parent2615e0cb92aa9a2ea8ec13cd15dc4988079c4305
mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr()

- bool return value for spi_nor_check_lock_status_sr(), gets rid of
  the return 1,
- introduce temporary variables for better readability.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20210322075131.45093-3-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/swp.c