Skip to content

Commit

Permalink
mm/zsmalloc.c: remove unused variable
Browse files Browse the repository at this point in the history
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.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 4268509 ("zsmalloc: no need to check return value of debugfs_create functions")
Signed-off-by: Anders Roxell <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
roxell authored and gregkh committed Jun 5, 2019
1 parent c9c2c27 commit 64ae0e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64ae0e7

Please sign in to comment.