Staging: hv: netvsc: Cleanup error code in rndis_filter_device_add()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:49:21 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:32:12 +0000 (15:32 -0700)
Use standard Linux error codes.

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

index a71f29d5ca0493a0de7e5243720b2e2fd528adfb..f0d1362913ef1b61b545b98a618672e589ad8018 100644 (file)
@@ -673,7 +673,7 @@ int rndis_filter_device_add(struct hv_device *dev,
 
        rndisDevice = get_rndis_device();
        if (!rndisDevice)
-               return -1;
+               return -ENODEV;
 
        /*
         * Let the inner driver handle this first to create the netvsc channel