--- linux-2.6.4/drivers/net/wan/pc300_drv.c~ 2004-03-30 15:30:57.000000000 +0100
+++ linux-2.6.4/drivers/net/wan/pc300_drv.c 2004-03-30 15:32:11.000000000 +0100
@@ -3661,7 +3661,7 @@
release_mem_region(card->hw.falcphys, card->hw.falcsize);
}
for (i = 0; i < card->hw.nchan; i++)
- if (card->chan[i].d.dev);
+ if (card->chan[i].d.dev)
free_netdev(card->chan[i].d.dev);
if (card->hw.irq)
free_irq(card->hw.irq, card);
Oops, Linus, please apply.
On Tue, Mar 30, 2004 at 03:35:24PM +0100, Dave Jones wrote:
> --- linux-2.6.4/drivers/net/wan/pc300_drv.c~ 2004-03-30 15:30:57.000000000 +0100
> +++ linux-2.6.4/drivers/net/wan/pc300_drv.c 2004-03-30 15:32:11.000000000 +0100
> @@ -3661,7 +3661,7 @@
> release_mem_region(card->hw.falcphys, card->hw.falcsize);
> }
> for (i = 0; i < card->hw.nchan; i++)
> - if (card->chan[i].d.dev);
> + if (card->chan[i].d.dev)
> free_netdev(card->chan[i].d.dev);
> if (card->hw.irq)
> free_irq(card->hw.irq, card);