1
0
Fork 0

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>
hifive-unleashed-5.1
Syam Sidhardhan 2013-02-24 23:20:05 +00:00 committed by Roland Dreier
parent 57d88cffc8
commit c89d127128
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
out:
if (dm)
kfree(dm);
kfree(dm);
return;
}