mtd: fix coverity for mtd driver
authorxianjun.liu <xianjun.liu@amlogic.com>
Thu, 23 Aug 2018 03:38:52 +0000 (11:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 31 Aug 2018 11:16:00 +0000 (04:16 -0700)
commit825f2e0fd3468cfc28d1f5133d45b28c47c964cc
treefbc00f5b967a1f533c14bce69097f51ee5b5d0c7
parent4c4baa9d7a2052b9cdbf0047c0caba35bac4ecca
mtd: fix coverity for mtd driver

PD#172180: code style and logic issue

Change-Id: Ife539ada43eafa04538150697e5e4c63f4f90db0
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
drivers/amlogic/mtd/aml_env.c
drivers/amlogic/mtd/aml_key.c
drivers/amlogic/mtd/aml_nand.c
drivers/amlogic/mtd/boot.c
drivers/amlogic/mtd/m3_nand.c
drivers/amlogic/mtd/mtd_driver.c
drivers/amlogic/mtd/new_nand.c
drivers/amlogic/mtd/rsv_manage.c