diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-10-30 18:03:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:29 -0500 |
commit | 874ec33ff9ccf3651590697a2c2923b911bf31d0 (patch) | |
tree | a51bbb74c76f446342c26201b1e2c82c23c7706f /drivers/isdn | |
parent | b888c87b7498557d1dbb9de3d4b8402b1bb89193 (diff) |
[PATCH] sparse cleanups: NULL pointers, C99 struct init.
Convert most of the remaining "Using plain integer as NULL pointer" sparse
warnings to use NULL. (Not duplicating patches that are already in -mm,
-bird, or -kj.)
Convert isdn driver struct initializer to use C99 syntax.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hisax/hfc4s8s_l1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/hisax/hfc4s8s_l1.c b/drivers/isdn/hisax/hfc4s8s_l1.c index 7333377ab31d..e3866b0a97fd 100644 --- a/drivers/isdn/hisax/hfc4s8s_l1.c +++ b/drivers/isdn/hisax/hfc4s8s_l1.c | |||
@@ -1063,7 +1063,7 @@ tx_b_frame(struct hfc4s8s_btype *bch) | |||
1063 | Write_hfc8(l1->hw, A_INC_RES_FIFO, 1); | 1063 | Write_hfc8(l1->hw, A_INC_RES_FIFO, 1); |
1064 | } | 1064 | } |
1065 | ack_len += skb->truesize; | 1065 | ack_len += skb->truesize; |
1066 | bch->tx_skb = 0; | 1066 | bch->tx_skb = NULL; |
1067 | bch->tx_cnt = 0; | 1067 | bch->tx_cnt = 0; |
1068 | dev_kfree_skb(skb); | 1068 | dev_kfree_skb(skb); |
1069 | } else | 1069 | } else |
@@ -1659,10 +1659,10 @@ hfc4s8s_remove(struct pci_dev *pdev) | |||
1659 | } | 1659 | } |
1660 | 1660 | ||
1661 | static struct pci_driver hfc4s8s_driver = { | 1661 | static struct pci_driver hfc4s8s_driver = { |
1662 | name:"hfc4s8s_l1", | 1662 | .name = "hfc4s8s_l1", |
1663 | probe:hfc4s8s_probe, | 1663 | .probe = hfc4s8s_probe, |
1664 | remove:__devexit_p(hfc4s8s_remove), | 1664 | .remove = __devexit_p(hfc4s8s_remove), |
1665 | id_table:hfc4s8s_ids, | 1665 | .id_table = hfc4s8s_ids, |
1666 | }; | 1666 | }; |
1667 | 1667 | ||
1668 | /**********************/ | 1668 | /**********************/ |