Staging: hv: netvsc: Cleanup error code in rndis_filter_query_device()
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>
This commit is contained in:
parent
62c0743ef0
commit
de6e0580d5
@ -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,
|
request = get_rndis_request(dev, REMOTE_NDIS_QUERY_MSG,
|
||||||
RNDIS_MESSAGE_SIZE(struct rndis_query_request));
|
RNDIS_MESSAGE_SIZE(struct rndis_query_request));
|
||||||
if (!request) {
|
if (!request) {
|
||||||
ret = -1;
|
ret = -ENOMEM;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user