Commit c664d638 authored by Daeseok Youn's avatar Daeseok Youn Committed by David S. Miller

atm: nicstar: use NULL instead of 0 for pointer

sparse says:

drivers/atm/nicstar.c:642:27: warning:
 Using plain integer as NULL pointer
drivers/atm/nicstar.c:644:27:
 warning: Using plain integer as NULL pointer
drivers/atm/nicstar.c:982:51:
 warning: Using plain integer as NULL pointer
drivers/atm/nicstar.c:996:51:
 warning: Using plain integer as NULL pointer
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Acked-by: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab85cff4
...@@ -639,9 +639,9 @@ static int ns_init_card(int i, struct pci_dev *pcidev) ...@@ -639,9 +639,9 @@ static int ns_init_card(int i, struct pci_dev *pcidev)
card->hbnr.init = NUM_HB; card->hbnr.init = NUM_HB;
card->hbnr.max = MAX_HB; card->hbnr.max = MAX_HB;
card->sm_handle = 0x00000000; card->sm_handle = NULL;
card->sm_addr = 0x00000000; card->sm_addr = 0x00000000;
card->lg_handle = 0x00000000; card->lg_handle = NULL;
card->lg_addr = 0x00000000; card->lg_addr = 0x00000000;
card->efbie = 1; /* To prevent push_rxbufs from enabling the interrupt */ card->efbie = 1; /* To prevent push_rxbufs from enabling the interrupt */
...@@ -979,7 +979,7 @@ static void push_rxbufs(ns_dev * card, struct sk_buff *skb) ...@@ -979,7 +979,7 @@ static void push_rxbufs(ns_dev * card, struct sk_buff *skb)
addr2 = card->sm_addr; addr2 = card->sm_addr;
handle2 = card->sm_handle; handle2 = card->sm_handle;
card->sm_addr = 0x00000000; card->sm_addr = 0x00000000;
card->sm_handle = 0x00000000; card->sm_handle = NULL;
} else { /* (!sm_addr) */ } else { /* (!sm_addr) */
card->sm_addr = addr1; card->sm_addr = addr1;
...@@ -993,7 +993,7 @@ static void push_rxbufs(ns_dev * card, struct sk_buff *skb) ...@@ -993,7 +993,7 @@ static void push_rxbufs(ns_dev * card, struct sk_buff *skb)
addr2 = card->lg_addr; addr2 = card->lg_addr;
handle2 = card->lg_handle; handle2 = card->lg_handle;
card->lg_addr = 0x00000000; card->lg_addr = 0x00000000;
card->lg_handle = 0x00000000; card->lg_handle = NULL;
} else { /* (!lg_addr) */ } else { /* (!lg_addr) */
card->lg_addr = addr1; card->lg_addr = addr1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment