aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/main.c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2011-10-06 09:33:11 -0700
committerRoland Dreier <roland@purestorage.com>2011-10-06 09:33:11 -0700
commit0f6740c7c455693f719580f34bb8afa8a298ea36 (patch)
tree1302916de0b8d3ae3734156582b9fe0c81d50690 /drivers/infiniband/hw/mlx4/main.c
parentLinux 3.1-rc9 (diff)
downloadlinux-dev-0f6740c7c455693f719580f34bb8afa8a298ea36.tar.xz
linux-dev-0f6740c7c455693f719580f34bb8afa8a298ea36.zip
mlx4_core: Clean up error flow in mlx4_register_mac()
Fix a leak of entry if radix_tree_insert() fails. Also, reduce the indentation and make the flow easier to read by sticking to the conventional err = do_something(); if (err) return err; err = do_another(); if (err) return err; rather than mixing the direction of the test as err = do_something(); if (!err) { err = do_another(); if (err) return err; } else return err; Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions