summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-07-13 12:34:19 +0200
committerLeon Romanovsky <leon@kernel.org>2017-07-23 08:45:11 +0200
commitdc892e17bbae670a3d7aa6ab8bd1033b15b24645 (patch)
tree1441e6ccfd65cb68053401e1e5090e108e818b5c /drivers/edac
parentIB/ipoib: Add get statistics support to SRIOV VF (diff)
downloadlinux-dc892e17bbae670a3d7aa6ab8bd1033b15b24645.tar.xz
linux-dc892e17bbae670a3d7aa6ab8bd1033b15b24645.zip
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/edac')
0 files changed, 0 insertions, 0 deletions