From: YueHaibing Date: Thu, 14 Feb 2019 09:04:08 +0000 (+0000) Subject: swiotlb: drop pointless static qualifier in swiotlb_create_debugfs() X-Git-Tag: v5.1-rc1~108^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=22cb45d7692ab502dd47dc5a607b3af240ee1e37;p=linux.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- 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);