staging: unisys: visornic: handle error return from device registration
[deliverable/linux.git] / drivers / staging / unisys / visornic / visornic_main.c
index 7b08a8998a6d72e01d87a1f55e8557a52fa9950b..9d3c1e28206240705b74d3913f653be01c4ef6f1 100644 (file)
@@ -2131,8 +2131,9 @@ static int visornic_init(void)
        if (!dev_num_pool)
                goto cleanup_workqueue;
 
-       visorbus_register_visor_driver(&visornic_driver);
-       return 0;
+       err = visorbus_register_visor_driver(&visornic_driver);
+       if (!err)
+               return 0;
 
 cleanup_workqueue:
        if (visornic_timeout_reset_workqueue) {
This page took 0.025493 seconds and 5 git commands to generate.