From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:17 +0000 (-0700) Subject: Staging: hv: netvsc: Cleanup error codes in rndis_filter_receive() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62c0743ef00cb0ad0b32b05fb96acd4d8e7391dd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Staging: hv: netvsc: Cleanup error codes in rndis_filter_receive() Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index dbb520199756..8e1ef0056d6b 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -358,14 +358,14 @@ int rndis_filter_receive(struct hv_device *dev, if (!net_dev->extension) { dev_err(&dev->device, "got rndis message but no rndis device - " "dropping this message!\n"); - return -1; + return -ENODEV; } rndis_dev = (struct rndis_device *)net_dev->extension; if (rndis_dev->state == RNDIS_DEV_UNINITIALIZED) { dev_err(&dev->device, "got rndis message but rndis device " "uninitialized...dropping this message!\n"); - return -1; + return -ENODEV; } rndis_hdr = (struct rndis_message *)kmap_atomic(