diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-26 14:46:56 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 07:54:27 -0400 |
commit | 8be84e035c3f585f22f87034b41324681cf5c3ad (patch) | |
tree | a000b8c906536610779deff4ad0a28f9cc2da55a | |
parent | 8913405593c358c050cfb485652f9e40288e38df (diff) |
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>
-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, | |||
308 | 308 | ||
309 | out: | 309 | out: |
310 | /* Free any left over map structures */ | 310 | /* Free any left over map structures */ |
311 | if (map) | 311 | kfree(map); |
312 | kfree(map); | ||
313 | 312 | ||
314 | /* See if I have any map structures */ | 313 | /* See if I have any map structures */ |
315 | if (list_empty(&window->maps)) { | 314 | if (list_empty(&window->maps)) { |