OSDN Git Service

IB/sa: simplify return code logic for ib_nl_send_msg()
authorAlex Estrin <alex.estrin@intel.com>
Wed, 26 Sep 2018 17:02:32 +0000 (10:02 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 26 Sep 2018 22:35:48 +0000 (16:35 -0600)
commitc8b53d0c5eb89a5831b7a25f4bd5e742a85c293b
tree89f739cd290cbaf3f014bd40b8e2240fcd64beb9
parente04951ebeefbad29455a6218187fe01e0f05b026
IB/sa: simplify return code logic for ib_nl_send_msg()

rdma_nl_multicast() returns either negative error code
or zero if succeeded. Remove unnecessary ret code checks
and reassignments.

Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/sa_query.c