mtd: nand: docg4: simplify error case
authorBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 19:39:53 +0000 (11:39 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 20:43:00 +0000 (12:43 -0800)
commit2d3743944a6b425f3a3795a967499c13e0d8856c
tree7b028423ad609469780a881de8dc7b85617390d7
parent7208b997b726522cdbea61f53a82c763704c015a
mtd: nand: docg4: simplify error case

Other refactorings have left the 'fail' label much simpler, so it
shouldn't have to handle the failed allocation case.

This also fixes a -Wshadow warning.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/docg4.c