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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1253,8 +1253,6 @@ static int __init zswap_debugfs_init(void)
		return -ENODEV;

	zswap_debugfs_root = debugfs_create_dir("zswap", NULL);
	if (!zswap_debugfs_root)
		return -ENOMEM;

	debugfs_create_u64("pool_limit_hit", 0444,
			   zswap_debugfs_root, &zswap_pool_limit_hit);