projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1856478
)
thunderbolt: Remove a meaningless NULL pointer check before dma_pool_destroy
author
zhong jiang
<zhongjiang@huawei.com>
Mon, 1 Oct 2018 09:31:18 +0000
(12:31 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 22:52:08 +0000
(15:52 -0700)
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>
drivers/thunderbolt/ctl.c
patch
|
blob
|
history
diff --git
a/drivers/thunderbolt/ctl.c
b/drivers/thunderbolt/ctl.c
index
37a7f4c
..
e54e84e
100644
(file)
--- a/
drivers/thunderbolt/ctl.c
+++ b/
drivers/thunderbolt/ctl.c
@@
-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);
}