Commit 0bb5a1a2 authored by zhong jiang's avatar zhong jiang Committed by Greg Kroah-Hartman

thunderbolt: Remove a meaningless NULL pointer check before dma_pool_destroy

dma_pool_destroy() already takes NULL pointer into account so there is
no need to check that again in tb_ctl_free().
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
[mw: reword commit log a bit]
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18564781
......@@ -662,7 +662,6 @@ void tb_ctl_free(struct tb_ctl *ctl)
tb_ctl_pkg_free(ctl->rx_packets[i]);
if (ctl->frame_pool)
dma_pool_destroy(ctl->frame_pool);
kfree(ctl);
}
......
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