mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
net/rds: Remove unnecessary null check
Null check before dma_pool_destroy is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c5378f9d5
commit
ce753e66dc
@ -108,7 +108,6 @@ static void rds_ib_dev_free(struct work_struct *work)
|
||||
rds_ib_destroy_mr_pool(rds_ibdev->mr_1m_pool);
|
||||
if (rds_ibdev->pd)
|
||||
ib_dealloc_pd(rds_ibdev->pd);
|
||||
if (rds_ibdev->rid_hdrs_pool)
|
||||
dma_pool_destroy(rds_ibdev->rid_hdrs_pool);
|
||||
|
||||
list_for_each_entry_safe(i_ipaddr, i_next, &rds_ibdev->ipaddr_list, list) {
|
||||
|
Loading…
Reference in New Issue
Block a user