diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-24 18:20:05 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-02-25 12:24:32 -0500 |
commit | c89d127128dba62458e956388fef7e5d728e1ded (patch) | |
tree | af147d58b88c2f64442726065271438e0981c6ed | |
parent | 57d88cffc83a2120266bbe9e72cbba5bd5f33675 (diff) |
IB/mlx4: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index e7d81c0d1ac5..3fdd1c17cef7 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1601,8 +1601,7 @@ static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init) | |||
1601 | spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); | 1601 | spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); |
1602 | } | 1602 | } |
1603 | out: | 1603 | out: |
1604 | if (dm) | 1604 | kfree(dm); |
1605 | kfree(dm); | ||
1606 | return; | 1605 | return; |
1607 | } | 1606 | } |
1608 | 1607 | ||