VMCI: Fix "always true condition"
authorAndy King <acking@vmware.com>
Thu, 10 Jan 2013 23:41:41 +0000 (15:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 20:07:39 +0000 (12:07 -0800)
commit0e7894dc82bd9d4d82c16d16189f58da6d41d018
tree9b51c182bfbd2fef57f6d64b59a137f99cc70221
parent32b083a3fd1452b9d5aba8e781ca95b566f3e054
VMCI: Fix "always true condition"

vmci_send_datagram() returns an int, with negative values indicating failure.
But we store it locally in a u32, which makes comparison of >= 0 useless.
Fixed to use an int.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_guest.c