android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
hw
sw
ulp IB/ipoib: Clean error paths in add port 2017-07-23 09:45:11 +03:00
Kconfig
Makefile