Commit c89d1271 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Roland Dreier

IB/mlx4: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 57d88cff
...@@ -1601,8 +1601,7 @@ static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init) ...@@ -1601,8 +1601,7 @@ static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init)
spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags);
} }
out: out:
if (dm) kfree(dm);
kfree(dm);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment