diff options
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r-- | drivers/net/loopback.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 6ba6ed2b480a..5106c2328d12 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -229,7 +229,12 @@ struct net_device loopback_dev = { | |||
229 | /* Setup and register the loopback device. */ | 229 | /* Setup and register the loopback device. */ |
230 | static int __init loopback_init(void) | 230 | static int __init loopback_init(void) |
231 | { | 231 | { |
232 | return register_netdev(&loopback_dev); | 232 | int err = register_netdev(&loopback_dev); |
233 | |||
234 | if (err) | ||
235 | panic("loopback: Failed to register netdevice: %d\n", err); | ||
236 | |||
237 | return err; | ||
233 | }; | 238 | }; |
234 | 239 | ||
235 | module_init(loopback_init); | 240 | module_init(loopback_init); |