]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Get rid of needless 'goto'
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 21 Jul 2016 21:59:21 +0000 (14:59 -0700)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commit646c2f779fdcc3430d61fb6f7ce1a6f3452c56ca
tree3106187e2dd999b09d5ea7910bb6bc7f5f3788d8
parent20065abf4b1546c00b00b35a831e5b1bc67a67b2
mtd: nand: Get rid of needless 'goto'

Using "goto" and "switch" statement only makes it harder to follow
control flow and doesn't bring any advantages. Rewrite the code to avoid
using "goto".

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c