]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 a01b83e95a2a8003f85d413b945a78e921760332..2b0c8fd9658ea8d13c3f061677d33be3dfca3bf0 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);