Commit de2fadf5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

zswap: ignore debugfs_create_dir() return value

When calling debugfs functions, there is no need to ever check the
return value.  The function can work or not, but the code logic should
never do something different based on this.

Cc: Seth Jennings <sjenning@redhat.com>
Cc: linux-mm@kvack.org
Acked-by: default avatarDan Streetman <ddstreet@ieee.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2c7c76c
...@@ -1253,8 +1253,6 @@ static int __init zswap_debugfs_init(void) ...@@ -1253,8 +1253,6 @@ static int __init zswap_debugfs_init(void)
return -ENODEV; return -ENODEV;
zswap_debugfs_root = debugfs_create_dir("zswap", NULL); zswap_debugfs_root = debugfs_create_dir("zswap", NULL);
if (!zswap_debugfs_root)
return -ENOMEM;
debugfs_create_u64("pool_limit_hit", 0444, debugfs_create_u64("pool_limit_hit", 0444,
zswap_debugfs_root, &zswap_pool_limit_hit); zswap_debugfs_root, &zswap_pool_limit_hit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment