[patch] Staging: hv: netvsc: return negative error codes
Dan Carpenter
error27 at gmail.com
Sat Aug 27 11:06:07 UTC 2011
There was a typo here and we changed the -ENOMEM into +ENOMEM. The
error codes aren't used, so this is just a cleanup.
Signed-off-by: Dan Carpenter <error27 at gmail.com>
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c
index b6e1fb9..0b801f5 100644
--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -175,7 +175,7 @@ static int netvsc_destroy_recv_buf(struct netvsc_device *net_device)
if (ret != 0) {
dev_err(&net_device->dev->device,
"unable to teardown receive buffer's gpadl");
- return -ret;
+ return ret;
}
net_device->recv_buf_gpadl_handle = 0;
}
More information about the devel
mailing list