From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:18 +0000 (-0700) Subject: Staging: hv: netvsc: Cleanup error code in rndis_filter_query_device() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de6e0580d5884942f58a636902e5b0225f38b8cf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: netvsc: Cleanup error code in rndis_filter_query_device() 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 8e1ef0056d6b..f26886d7738b 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -437,7 +437,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid, request = get_rndis_request(dev, REMOTE_NDIS_QUERY_MSG, RNDIS_MESSAGE_SIZE(struct rndis_query_request)); if (!request) { - ret = -1; + ret = -ENOMEM; goto Cleanup; }