]> 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)
commit5a79dbffd7e93ae77a2247fd640741190b3e59f7
tree3106187e2dd999b09d5ea7910bb6bc7f5f3788d8
parent194c9976d242b58a5965aa2b9cf8faf18523efd5
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