au1000_eth: remove useless check

The lifespan of the device covers the request_irq .. free_irq interval.

The cast of a void * pointer is not needed either.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
Francois Romieu 2008-05-12 18:44:21 +02:00 коммит произвёл Jeff Garzik
Родитель 94a47f4161
Коммит d04455fba3
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -1239,12 +1239,7 @@ static int au1000_rx(struct net_device *dev)
*/ */
static irqreturn_t au1000_interrupt(int irq, void *dev_id) static irqreturn_t au1000_interrupt(int irq, void *dev_id)
{ {
struct net_device *dev = (struct net_device *) dev_id; struct net_device *dev = dev_id;
if (dev == NULL) {
printk(KERN_ERR "%s: isr: null dev ptr\n", dev->name);
return IRQ_RETVAL(1);
}
/* Handle RX interrupts first to minimize chance of overrun */ /* Handle RX interrupts first to minimize chance of overrun */