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: v3.2-rc1~169^2^2~864^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de6e0580d5884942f58a636902e5b0225f38b8cf;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 8e1ef00..f26886d 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; }