]> git.baikalelectronics.ru Git - kernel.git/commit
eeprom: at24: drop redundant variable in at24_write()
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 19 Mar 2018 09:17:07 +0000 (10:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 15:25:00 +0000 (16:25 +0100)
commit750e36fda8d0f801c397eee55b10f89f8dbc88df
tree96b4cecd86ff9054589ed0e0befbc586be42547e
parent4eb119f759e6635847a64d1866ddddb6d6f66358
eeprom: at24: drop redundant variable in at24_write()

We can reuse ret instead of defining a loop-local status variable.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at24.c