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:
95f5632
)
staging: cxt1e1: hwprobe.c: Use NULL instead of 0
author
Sachin Kamat
<
[email protected]
>
Fri, 27 Sep 2013 04:06:33 +0000
(09:36 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 1 Oct 2013 01:48:40 +0000
(18:48 -0700)
Pointers should be assigned NULL instead of 0.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/cxt1e1/hwprobe.c
patch
|
blob
|
history
diff --git
a/drivers/staging/cxt1e1/hwprobe.c
b/drivers/staging/cxt1e1/hwprobe.c
index 53e923701ae6d4099a27c7f6457b5830a4b4ba35..2f4f051a7c36ef465a128529cc96f822d3cec5c1 100644
(file)
--- a/
drivers/staging/cxt1e1/hwprobe.c
+++ b/
drivers/staging/cxt1e1/hwprobe.c
@@
-157,7
+157,7
@@
prep_hdw_info (void)
hi->pci_slot = 0xff;
hi->pci_pin[0] = 0;
hi->pci_pin[1] = 0;
- hi->ndev =
0
;
+ hi->ndev =
NULL
;
hi->addr[0] = 0L;
hi->addr[1] = 0L;
hi->addr_mapped[0] = 0L;
@@
-328,7
+328,7
@@
c4hw_attach_all (void)
break;
for (j = 0; j < 2; j++)
{
-
if (request_mem_region (hi->addr[j], hi->len[j], hi->devname) == 0
)
+
if (!request_mem_region (hi->addr[j], hi->len[j], hi->devname)
)
{
pr_warning("%s: memory in use, addr=0x%lx, len=0x%lx ?\n",
hi->devname, hi->addr[j], hi->len[j]);