summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorColin Ian King2017-03-29 17:33:55 +0200
committerDavid S. Miller2017-03-30 20:07:08 +0200
commited8bfd5c1ca6e2911c797da611fdada958ab44c0 (patch)
treebddb131915e0a0a357e1c0f35eb77f6d2c75c520 /drivers/net/bonding/bond_main.c
parentdrivers: add explicit interrupt.h includes (diff)
downloadkernel-qcow2-linux-ed8bfd5c1ca6e2911c797da611fdada958ab44c0.tar.gz
kernel-qcow2-linux-ed8bfd5c1ca6e2911c797da611fdada958ab44c0.tar.xz
kernel-qcow2-linux-ed8bfd5c1ca6e2911c797da611fdada958ab44c0.zip
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>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
0 files changed, 0 insertions, 0 deletions