]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
Report errors in device registration
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Dec 2012 13:23:54 +0000 (14:23 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Dec 2012 13:24:05 +0000 (14:24 +0100)
net/can/canethgw.c

index 535d910acb949033641221f7ff7146a77b8ded03..4a13e600db541b8e584470a484bcadfadd7d99ef 100644 (file)
@@ -330,9 +330,7 @@ static struct miscdevice cegw_device = {
 
 static int __init cegw_init(void)
 {
-       misc_register(&cegw_device);
-
-       return 0;
+       return misc_register(&cegw_device);
 }
 
 static void __exit cegw_exit(void)