mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:10:53 +07:00
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>
This commit is contained in:
parent
60513ed06a
commit
22cb45d769
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user