mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 04:07:05 +07:00
mtd: afs: remove unneeded NULL check
NULL check before kfree is unneeded, so remove it. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
1d2af80d58
commit
63898ab515
@ -371,8 +371,7 @@ static int parse_afs_partitions(struct mtd_info *mtd,
|
||||
|
||||
out_free_parts:
|
||||
while (i >= 0) {
|
||||
if (parts[i].name)
|
||||
kfree(parts[i].name);
|
||||
kfree(parts[i].name);
|
||||
i--;
|
||||
}
|
||||
kfree(parts);
|
||||
|
Loading…
Reference in New Issue
Block a user