diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-16 14:07:28 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-02-12 21:53:22 +0100 |
commit | 3b638f997a3551b922dee5d8371208c9017ab7f9 (patch) | |
tree | c18e6bf8d38e12283e54d55d0ec9652ee3bc3690 /drivers/mtd/ubi | |
parent | ubi: remove dead code in validate_vid_hdr() (diff) | |
download | linux-3b638f997a3551b922dee5d8371208c9017ab7f9.tar.xz linux-3b638f997a3551b922dee5d8371208c9017ab7f9.zip |
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/ubi')
-rw-r--r-- | drivers/mtd/ubi/eba.c | 1 |
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); |