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>
 
        net_device = alloc_net_device(device);
        if (!net_device) {
-               ret = -1;
+               ret = -ENOMEM;
                goto cleanup;
        }
 
 
        if (ret != 0) {
                dev_err(&device->device, "unable to open channel: %d", ret);
-               ret = -1;
                goto cleanup;
        }
 
        if (ret != 0) {
                dev_err(&device->device,
                        "unable to connect to NetVSP - %d", ret);
-               ret = -1;
                goto close;
        }