aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ck804xrom.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2013-02-27 01:16:56 +0530
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 12:54:27 +0100
commit8be84e035c3f585f22f87034b41324681cf5c3ad (patch)
treea000b8c906536610779deff4ad0a28f9cc2da55a /drivers/mtd/maps/ck804xrom.c
parent8913405593c358c050cfb485652f9e40288e38df (diff)
downloadkernel_goldelico_gta04-8be84e035c3f585f22f87034b41324681cf5c3ad.zip
kernel_goldelico_gta04-8be84e035c3f585f22f87034b41324681cf5c3ad.tar.gz
kernel_goldelico_gta04-8be84e035c3f585f22f87034b41324681cf5c3ad.tar.bz2
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 586a1c7..0455166 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)) {