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: zhong jiang <zhongjiang@huawei.com>
[mw: reword commit log a bit]
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
zhong jiang 2018-10-01 12:31:18 +03:00 committed by Greg Kroah-Hartman
parent 185647813c
commit 0bb5a1a28e

View File

@ -662,8 +662,7 @@ 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);
dma_pool_destroy(ctl->frame_pool);
kfree(ctl);
}