]> 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)
commit84919c9d1576bb7db6b416c7bf1f38714d81960a
tree5bdd5021f75e35c5b08af136974d8c7788d3ca7d
parent11f04a44c77109e03b0ed818d60bcd25effac32a
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: abff70da8ae0 ("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