summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorZheng Yongjun <zhengyongjun3@huawei.com>2020-12-16 16:07:28 +0300
committerRichard Weinberger <richard@nod.at>2021-02-12 23:53:22 +0300
commit3b638f997a3551b922dee5d8371208c9017ab7f9 (patch)
treec18e6bf8d38e12283e54d55d0ec9652ee3bc3690 /drivers/mtd
parentcf0838dfa3f9337229bbb7837c24b985539bf37d (diff)
downloadlinux-3b638f997a3551b922dee5d8371208c9017ab7f9.tar.xz
ubi: eba: Delete useless kfree code
The parameter of kfree function is NULL, so kfree code is useless, delete it. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/eba.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 892494c8cb7c..ccc5979642b7 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -142,7 +142,6 @@ struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
return tbl;
err:
- kfree(tbl->entries);
kfree(tbl);
return ERR_PTR(err);