Skip to content

Commit

Permalink
swiotlb: drop pointless static qualifier in swiotlb_create_debugfs()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Konrad Rzeszutek Wilk committed Feb 16, 2019
1 parent 60513ed commit 22cb45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/dma/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 22cb45d

Please sign in to comment.