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-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62c0743ef00cb0ad0b32b05fb96acd4d8e7391dd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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(