Staging: hv: vmbus: Cleanup some error codes in vmbus_drv.c
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:50:07 +0000 (15:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:46:04 +0000 (13:46 -0700)
Cleanup some error codes in vmbus_drv.c

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/vmbus_drv.c

index 17692ce88c391764214136edbaa6764a0cb6f83a..a3c99f127482fbc25ead456311755111931ae9ba 100644 (file)
@@ -329,7 +329,7 @@ static int vmbus_probe(struct device *child_device)
        } else {
                pr_err("probe not set for driver %s\n",
                       dev_name(child_device));
-               ret = -1;
+               ret = -ENODEV;
        }
        return ret;
 }
@@ -352,7 +352,7 @@ static int vmbus_remove(struct device *child_device)
                } else {
                        pr_err("remove not set for driver %s\n",
                                dev_name(child_device));
-                       ret = -1;
+                       ret = -ENODEV;
                }
        }