summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/parsers/afs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/parsers/afs.c')
-rw-r--r--drivers/mtd/parsers/afs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/parsers/afs.c b/drivers/mtd/parsers/afs.c
index f24d768eee30..752b6cf005f7 100644
--- a/drivers/mtd/parsers/afs.c
+++ b/drivers/mtd/parsers/afs.c
@@ -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);
OpenPOWER on IntegriCloud