summaryrefslogtreecommitdiffstats
path: root/kernel/dma
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-14 10:04:08 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2019-02-16 17:36:34 +0100
commit22cb45d7692ab502dd47dc5a607b3af240ee1e37 (patch)
tree030a07e836cc8a2dbd8ad1eeca34def7e6692863 /kernel/dma
parentswiotlb: checking whether swiotlb buffer is full with io_tlb_used (diff)
downloadlinux-22cb45d7692ab502dd47dc5a607b3af240ee1e37.tar.xz
linux-22cb45d7692ab502dd47dc5a607b3af240ee1e37.zip
swiotlb: drop pointless static qualifier in swiotlb_create_debugfs()
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>
Diffstat (limited to 'kernel/dma')
-rw-r--r--kernel/dma/swiotlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index a01b83e95a2a..2b0c8fd9658e 100644
--- 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)
{
- static struct dentry *d_swiotlb_usage;
+ struct dentry *d_swiotlb_usage;
struct dentry *ent;
d_swiotlb_usage = debugfs_create_dir("swiotlb", NULL);