nvme: tcp: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 14:34:35 +0000 (15:34 +0100)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 12 Sep 2019 15:50:46 +0000 (08:50 -0700)
commit312910f4d2fed987d1f4a6cd75e86c926e9ad557
treef32e48f91ea11b826c844d019a301a6bf5869c71
parent03894b7a896dc6eb3870e197bd7414ab0c947cbf
nvme: tcp: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never read
and is being re-assigned immediately afterwards. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/tcp.c