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-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a3e00530469baa39ccc08b1731a4e120bd63012f;p=~shefty%2Frdma-dev.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 b89ac7e40ca..baa0c8d9153 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; }