summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ck804xrom.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2013-02-26 20:46:56 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 13:54:27 +0200
commit8be84e035c3f585f22f87034b41324681cf5c3ad (patch)
treea000b8c906536610779deff4ad0a28f9cc2da55a /drivers/mtd/maps/ck804xrom.c
parentmtd: m25p80: add support for SST25VF064C (diff)
downloadlinux-8be84e035c3f585f22f87034b41324681cf5c3ad.tar.xz
linux-8be84e035c3f585f22f87034b41324681cf5c3ad.zip
mtd: maps: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan <s.syam@samsung.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/ck804xrom.c')
-rw-r--r--drivers/mtd/maps/ck804xrom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 586a1c77e48a..0455166f05fa 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -308,8 +308,7 @@ static int ck804xrom_init_one(struct pci_dev *pdev,
out:
/* Free any left over map structures */
- if (map)
- kfree(map);
+ kfree(map);
/* See if I have any map structures */
if (list_empty(&window->maps)) {