diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-26 20:46:56 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 13:54:27 +0200 |
commit | 8be84e035c3f585f22f87034b41324681cf5c3ad (patch) | |
tree | a000b8c906536610779deff4ad0a28f9cc2da55a /drivers/mtd/maps/ck804xrom.c | |
parent | mtd: m25p80: add support for SST25VF064C (diff) | |
download | linux-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.c | 3 |
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)) { |