eeprom: at24: drop unnecessary label
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 20 May 2019 07:10:42 +0000 (09:10 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 28 May 2019 15:55:11 +0000 (17:55 +0200)
commitb20eb4c1f0261eebe6e1b9221c0d6e4048837778
tree5e0762b222a895249f6da85e92280444bc224def
parente7308628d0ae5c90d2895d0f3e6030c390431ca6
eeprom: at24: drop unnecessary label

If we move the nvmem registration above the pm enable calls and the
test read, we can drop the error label and make the code more readable
as there's now only a single place where we must call
pm_runtime_disable() in error path.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/misc/eeprom/at24.c