diff options
| author | Colin Ian King <[email protected]> | 2017-03-29 15:33:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-03-30 18:07:08 +0000 |
| commit | ed8bfd5c1ca6e2911c797da611fdada958ab44c0 (patch) | |
| tree | bddb131915e0a0a357e1c0f35eb77f6d2c75c520 /drivers/net/dsa/dsa_loop.c | |
| parent | drivers: add explicit interrupt.h includes (diff) | |
| download | kernel-ed8bfd5c1ca6e2911c797da611fdada958ab44c0.tar.gz kernel-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 <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Jorgen Hansen <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions
