projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8913405
)
mtd: maps: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<syamsidhardh@gmail.com>
Tue, 26 Feb 2013 19:46:56 +0000
(
01:16
+0530)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 5 Apr 2013 11:54:27 +0000
(12:54 +0100)
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>
drivers/mtd/maps/ck804xrom.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/ck804xrom.c
b/drivers/mtd/maps/ck804xrom.c
index 586a1c77e48a7f29a6459e11387ad4d76c412383..0455166f05faeaf364252bf0ddd39ba1fa24931b 100644
(file)
--- 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)) {