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:
60513ed
)
swiotlb: drop pointless static qualifier in swiotlb_create_debugfs()
author
YueHaibing
<yuehaibing@huawei.com>
Thu, 14 Feb 2019 09:04:08 +0000
(09:04 +0000)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Sat, 16 Feb 2019 16:36:34 +0000
(11:36 -0500)
There is no need to have the 'struct dentry *d_swiotlb_usage' variable
static since new value always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c
patch
|
blob
|
history
diff --git
a/kernel/dma/swiotlb.c
b/kernel/dma/swiotlb.c
index
a01b83e
..
2b0c8fd
100644
(file)
--- a/
kernel/dma/swiotlb.c
+++ b/
kernel/dma/swiotlb.c
@@
-682,7
+682,7
@@
swiotlb_dma_supported(struct device *hwdev, u64 mask)
static int __init swiotlb_create_debugfs(void)
{
- st
atic st
ruct dentry *d_swiotlb_usage;
+ struct dentry *d_swiotlb_usage;
struct dentry *ent;
d_swiotlb_usage = debugfs_create_dir("swiotlb", NULL);