diff options
Diffstat (limited to 'drivers/net/wan/pc300_drv.c')
-rw-r--r-- | drivers/net/wan/pc300_drv.c | 8 |
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 | ||
2366 | static irqreturn_t cpc_intr(int irq, void *dev_id) | 2366 | static 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 */ |