1
0
Fork 0
alistair23-linux/net/vmw_vsock
Colin Ian King ed8bfd5c1c VSOCK: remove unnecessary ternary operator on return value
Rather than assign the positive errno values to ret and then
checking if it is positive and flip the sign, just return the
errno value.

Detected by CoverityScan, CID#986649 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-30 11:07:08 -07:00
..
Kconfig VSOCK: Add Makefile and Kconfig 2016-08-02 02:57:30 +03:00
Makefile VSOCK: Add Makefile and Kconfig 2016-08-02 02:57:30 +03:00
af_vsock.c vsock: cancel packets when failing to connect 2017-03-21 14:41:47 -07:00
virtio_transport.c vsock: add pkt cancel capability 2017-03-21 14:41:47 -07:00
virtio_transport_common.c vsock: track pkt owner vsock 2017-03-21 14:41:46 -07:00
vmci_transport.c VSOCK: remove unnecessary ternary operator on return value 2017-03-30 11:07:08 -07:00
vmci_transport.h VSOCK: constify vmci_transport_notify_ops structures 2015-11-23 15:49:29 -05:00
vmci_transport_notify.c ATM: use designated initializers 2016-12-17 11:56:57 -05:00
vmci_transport_notify.h VSOCK: constify vmci_transport_notify_ops structures 2015-11-23 15:49:29 -05:00
vmci_transport_notify_qstate.c ATM: use designated initializers 2016-12-17 11:56:57 -05:00
vsock_addr.c VSOCK: Move af_vsock.h and vsock_addr.h to include/net 2013-07-27 22:14:06 -07:00