linux/drivers/infiniband
Leon Romanovsky dc892e17bb IB/ipoib: Clean error paths in add port
Refactor error paths in ipoib_add_port() function. The code flow
ensures that the function terminates on every error flow and it makes
redundant all "else" cases.

The functions are called during the flow are returning "result < 0", in
case of error, so there is no need to check it explicitly.

Fixes: 58e9cc90cd ("IB/IPoIB: Fix bad error flow in ipoib_add_port()")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2017-07-23 09:45:11 +03:00
..
core RDMA/core: Initialize port_num in qp_attr 2017-07-20 11:24:13 -04:00
hw RDMA/qedr: Prevent memory overrun in verbs' user responses 2017-07-20 11:20:50 -04:00
sw rxe: fix broken receive queue draining 2017-07-20 11:20:50 -04:00
ulp IB/ipoib: Clean error paths in add port 2017-07-23 09:45:11 +03:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00