swiotlb: drop pointless static qualifier in swiotlb_create_debugfs()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 14 Feb 2019 09:04:08 +0000 (09:04 +0000)
committerKonrad 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

index a01b83e..2b0c8fd 100644 (file)
@@ -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);