eeprom: at24: drop redundant variable in at24_read()
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 19 Mar 2018 09:17:06 +0000 (10:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 15:25:00 +0000 (16:25 +0100)
commiteb27fde2731b6cb5818493b8ac18e01f427e335f
treeb5f9fad9ced5c6937aa675728e80a6f6fe8dfd60
parent14263b893a524e967cdb0d39d94b6ed2bb9400c5
eeprom: at24: drop redundant variable in at24_read()

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