From: Dan Carpenter Date: Sat, 27 Aug 2011 11:06:07 +0000 (+0300) Subject: Staging: hv: netvsc: return negative error codes X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~819 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f9615e6f6c703c68f84460fe22b858be6c258d1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: netvsc: return negative error codes 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index e4cc40a3bd86..30d313952852 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -125,7 +125,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; }