diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-02-18 20:10:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 16:39:11 -0500 |
commit | c664d63818aee3167b7ffa4002d224c88cb7ba85 (patch) | |
tree | a69b3c0e9c74ca832af41826ed975849a0ba96ed /drivers/atm/nicstar.c | |
parent | ab85cff4d516ecc8b1630af0589760bfe5b50bd7 (diff) |
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: Daeseok Youn <daeseok.youn@gmail.com>
Acked-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/nicstar.c')
-rw-r--r-- | drivers/atm/nicstar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index 9587e959ce1a..13ed54cf2c31 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c | |||
@@ -639,9 +639,9 @@ static int ns_init_card(int i, struct pci_dev *pcidev) | |||
639 | card->hbnr.init = NUM_HB; | 639 | card->hbnr.init = NUM_HB; |
640 | card->hbnr.max = MAX_HB; | 640 | card->hbnr.max = MAX_HB; |
641 | 641 | ||
642 | card->sm_handle = 0x00000000; | 642 | card->sm_handle = NULL; |
643 | card->sm_addr = 0x00000000; | 643 | card->sm_addr = 0x00000000; |
644 | card->lg_handle = 0x00000000; | 644 | card->lg_handle = NULL; |
645 | card->lg_addr = 0x00000000; | 645 | card->lg_addr = 0x00000000; |
646 | 646 | ||
647 | card->efbie = 1; /* To prevent push_rxbufs from enabling the interrupt */ | 647 | 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 | addr2 = card->sm_addr; | 979 | addr2 = card->sm_addr; |
980 | handle2 = card->sm_handle; | 980 | handle2 = card->sm_handle; |
981 | card->sm_addr = 0x00000000; | 981 | card->sm_addr = 0x00000000; |
982 | card->sm_handle = 0x00000000; | 982 | card->sm_handle = NULL; |
983 | } else { /* (!sm_addr) */ | 983 | } else { /* (!sm_addr) */ |
984 | 984 | ||
985 | card->sm_addr = addr1; | 985 | card->sm_addr = addr1; |
@@ -993,7 +993,7 @@ static void push_rxbufs(ns_dev * card, struct sk_buff *skb) | |||
993 | addr2 = card->lg_addr; | 993 | addr2 = card->lg_addr; |
994 | handle2 = card->lg_handle; | 994 | handle2 = card->lg_handle; |
995 | card->lg_addr = 0x00000000; | 995 | card->lg_addr = 0x00000000; |
996 | card->lg_handle = 0x00000000; | 996 | card->lg_handle = NULL; |
997 | } else { /* (!lg_addr) */ | 997 | } else { /* (!lg_addr) */ |
998 | 998 | ||
999 | card->lg_addr = addr1; | 999 | card->lg_addr = addr1; |