diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-07-13 13:34:19 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2017-07-23 09:45:11 +0300 |
commit | dc892e17bbae670a3d7aa6ab8bd1033b15b24645 (patch) | |
tree | 1441e6ccfd65cb68053401e1e5090e108e818b5c /drivers/infiniband/core/verbs.c | |
parent | eb54714ddcb2462d4d4b8aa78d028b61e217a835 (diff) | |
download | linux-dc892e17bbae670a3d7aa6ab8bd1033b15b24645.tar.bz2 |
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: 58e9cc90cda7 ("IB/IPoIB: Fix bad error flow in ipoib_add_port()")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
0 files changed, 0 insertions, 0 deletions