]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rtrs: client: Fix function return on success
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 19 May 2020 16:36:12 +0000 (11:36 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:41:41 +0000 (20:41 -0300)
commit3a01296665c06555be4721e4189eb2e04a709ff0
tree5bdd5021f75e35c5b08af136974d8c7788d3ca7d
parent3ee9d8ce674833224b4398cb3ed9c1da2b4f99ea
RDMA/rtrs: client: Fix function return on success

Remove the if-statement and return the value contained in _err_,
unconditionally.

Link: https://lore.kernel.org/r/20200519163612.GA6043@embeddedor
Addresses-Coverity-ID: 1493753 ("Identical code for different branches")
Fixes: af01783ea5ce ("RDMA/rtrs: client: main functionality")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c