From: K. Y. Srinivasan Date: Mon, 6 Jun 2011 22:50:11 +0000 (-0700) Subject: Staging: hv: vmbus: Cleanup some error values in channel.c X-Git-Tag: next-20110726~5^2~568^2~35 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=926ae5262171b2b23c94bc5cbd8dbb9d32152419;p=karo-tx-linux.git Staging: hv: vmbus: Cleanup some error values in channel.c Cleanup some error values in channel.c. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c index 1833f275d0f8..21f1efc6cb4d 100644 --- a/drivers/staging/hv/channel.c +++ b/drivers/staging/hv/channel.c @@ -811,7 +811,7 @@ int vmbus_recvpacket(struct vmbus_channel *channel, void *buffer, pr_err("Buffer too small - got %d needs %d\n", bufferlen, userlen); - return -1; + return -ETOOSMALL; } *requestid = desc.trans_id;