Staging: hv: vmbus: Cleanup some error values in channel.c
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:50:11 +0000 (15:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:46:07 +0000 (13:46 -0700)
Cleanup some error values in channel.c.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/channel.c

index 1833f275d0f88c85777e660c6b9b85dc08789585..21f1efc6cb4d7494fc6eb2c029c963ff1889a260 100644 (file)
@@ -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;