aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/pc300_drv.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-01-24 05:06:46 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:12 -0500
commit79ea13ce07c951bb4d95471e7300baa0f1be9e78 (patch)
treec0ea320464201854c5d3a222e2dd0d10ae22c95f /drivers/net/wan/pc300_drv.c
parent3e18826c73735eee5fca92584137824d9a387008 (diff)
NULL noise in drivers/net
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/pc300_drv.c')
-rw-r--r--drivers/net/wan/pc300_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c
index 99fee2f1d019..57914fbd41d3 100644
--- a/drivers/net/wan/pc300_drv.c
+++ b/drivers/net/wan/pc300_drv.c
@@ -2365,17 +2365,17 @@ static void falc_intr(pc300_t * card)
2365 2365
2366static irqreturn_t cpc_intr(int irq, void *dev_id) 2366static irqreturn_t cpc_intr(int irq, void *dev_id)
2367{ 2367{
2368 pc300_t *card; 2368 pc300_t *card = dev_id;
2369 volatile ucchar plx_status; 2369 volatile ucchar plx_status;
2370 2370
2371 if ((card = (pc300_t *) dev_id) == 0) { 2371 if (!card) {
2372#ifdef PC300_DEBUG_INTR 2372#ifdef PC300_DEBUG_INTR
2373 printk("cpc_intr: spurious intr %d\n", irq); 2373 printk("cpc_intr: spurious intr %d\n", irq);
2374#endif 2374#endif
2375 return IRQ_NONE; /* spurious intr */ 2375 return IRQ_NONE; /* spurious intr */
2376 } 2376 }
2377 2377
2378 if (card->hw.rambase == 0) { 2378 if (!card->hw.rambase) {
2379#ifdef PC300_DEBUG_INTR 2379#ifdef PC300_DEBUG_INTR
2380 printk("cpc_intr: spurious intr2 %d\n", irq); 2380 printk("cpc_intr: spurious intr2 %d\n", irq);
2381#endif 2381#endif
@@ -3648,7 +3648,7 @@ static void __devexit cpc_remove_one(struct pci_dev *pdev)
3648{ 3648{
3649 pc300_t *card = pci_get_drvdata(pdev); 3649 pc300_t *card = pci_get_drvdata(pdev);
3650 3650
3651 if (card->hw.rambase != 0) { 3651 if (card->hw.rambase) {
3652 int i; 3652 int i;
3653 3653
3654 /* Disable interrupts on the PCI bridge */ 3654 /* Disable interrupts on the PCI bridge */