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)
commitb6cbd9167d442389614c079b7a8816d952114b90
tree044bf6d12f6a364b7494db2adc0492ee111c929f
parentc4c795105f2924c80752c30ffd3c7029a8e0ef28
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