]> rtime.felk.cvut.cz Git - socketcan-devel.git/blobdiff - kernel/2.6/net/can/raw.c
Change can_proto_unregister() and can_rx_unregister() to return void.
[socketcan-devel.git] / kernel / 2.6 / net / can / raw.c
index 21f5d244b8c37a44a252ab5c3230c5799e0eafe6..fe88a2d3067f8dc031888c74703f25897ac6d108 100644 (file)
@@ -825,17 +825,14 @@ static __init int raw_module_init(void)
 
        err = can_proto_register(&raw_can_proto);
        if (err < 0)
-               printk("can: registration of raw protocol failed\n");
+               printk(KERN_ERR "can: registration of raw protocol failed\n");
 
        return err;
 }
 
 static __exit void raw_module_exit(void)
 {
-       int err;
-
-       err = can_proto_unregister(&raw_can_proto);
-       WARN_ON(err < 0);
+       can_proto_unregister(&raw_can_proto);
 }
 
 module_init(raw_module_init);