projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60acb62
)
staging: dgnc: remove NULL test
author
Sudip Mukherjee
<
[email protected]
>
Sat, 3 Oct 2015 15:22:46 +0000
(20:52 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 4 Oct 2015 08:30:13 +0000
(09:30 +0100)
This NULL test is not required as iounmap will validate the argument.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/dgnc/dgnc_cls.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_cls.c
b/drivers/staging/dgnc/dgnc_cls.c
index 24fc28c0c966eab53e72949233c32dda6ca18889..944982a46e4b6695951ca6b935f490e7586e8b88 100644
(file)
--- a/
drivers/staging/dgnc/dgnc_cls.c
+++ b/
drivers/staging/dgnc/dgnc_cls.c
@@
-1307,6
+1307,5
@@
static void cls_vpd(struct dgnc_board *brd)
}
pr_info("\n");
- if (re_map_vpdbase)
- iounmap(re_map_vpdbase);
+ iounmap(re_map_vpdbase);
}