]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: powernv_flash: Remove pointless goto in driver init
authorCyril Bur <cyrilbur@gmail.com>
Fri, 3 Nov 2017 02:41:39 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 09:20:26 +0000 (20:20 +1100)
commit32995c0ed18f7d0280e5980429e64a9c3706903d
tree140dbbcbfbf12e3a6f82e8249aee99faf67ac0dd
parenteeae59acb4d59a01fa9c83d5a8bfdabd17d93d40
mtd: powernv_flash: Remove pointless goto in driver init

powernv_flash_probe() has pointless goto statements which jump to the
end of the function to simply return a variable. Rather than checking
for error and going to the label, just return the error as soon as it is
detected.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/mtd/devices/powernv_flash.c