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: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2c7c76c5d
commit
de2fadf566
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue