From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:12 +0000 (-0700) Subject: Staging: hv: netvsc: Cleanup error return codes in netvsc_destroy_recv_buf() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3e00530469baa39ccc08b1731a4e120bd63012f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: netvsc: Cleanup error return codes in netvsc_destroy_recv_buf() Cleanup error return codes in netvsc_destroy_recv_buf(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index b89ac7e40ca8..baa0c8d9153d 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -160,7 +160,7 @@ static int netvsc_destroy_recv_buf(struct netvsc_device *net_device) if (ret != 0) { dev_err(&net_device->dev->device, "unable to send " "revoke receive buffer to netvsp"); - return -1; + return ret; } } @@ -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 -1; + return -ret; } net_device->recv_buf_gpadl_handle = 0; }