mtd: silence some uninitialized variable warnings
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Apr 2016 06:42:34 +0000 (09:42 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 10 Jul 2016 01:14:39 +0000 (18:14 -0700)
commitc3cb77f8980db9dba614822d2d4a4cc61e44c8e2
tree87b93f6ade6292b73845a39f370828b369a18239
parentef158bdf837406a4b5f44524367d11d44da2bdf2
mtd: silence some uninitialized variable warnings

The "tmp_retlen" variable can be uninitialized if action() fails.  It's
harmless except for the static checker warning.  I have moved the error
handling earlier to fix it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/onenand/onenand_base.c