Skip to contentSkip to conversation

zsmalloc: remove unused variable

PATCH New Anders Roxell 1 participant 1 message Jun 4, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zsmalloc: remove unused variable

The variable 'entry' is no longer used and the compiler rightly complains that it should be removed.

../mm/zsmalloc.c: In function ‘zs_pool_stat_create’:
../mm/zsmalloc.c:648:17: warning: unused variable ‘entry’ [-Wunused-variable]

  struct dentry *entry;
                 ^~~~~

Rework to remove the unused variable.

Fixes 4268509a36a7 ("zsmalloc: no need to check return value of debugfs_create functions")
---
 mm/zsmalloc.c | 2 --
 1 file changed, 2 deletions(-)
mm/zsmalloc.c +0 -2
index 1347d7922ea2..db09eb3669c5 100644
@@ -645,8 +645,6 @@ DEFINE_SHOW_ATTRIBUTE(zs_stats_size);
 
 static void zs_pool_stat_create(struct zs_pool *pool, const char *name)
 {
-	struct dentry *entry;
-
 	if (!zs_stat_root) {
 		pr_warn("no root stat dir, not creating <%s> stat dir\n", name);
 		return;
Signature · 1 line
2.20.1