diff options
Diffstat (limited to 'src/net/netdevice.c')
| -rw-r--r-- | src/net/netdevice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c index c7e907ad6..813823760 100644 --- a/src/net/netdevice.c +++ b/src/net/netdevice.c @@ -542,6 +542,10 @@ void unregister_netdev ( struct net_device *netdev ) { */ void netdev_irq ( struct net_device *netdev, int enable ) { + /* Do nothing if device does not support interrupts */ + if ( ! netdev_irq_supported ( netdev ) ) + return; + /* Enable or disable device interrupts */ netdev->op->irq ( netdev, enable ); |
