Commit c3491eca authored by Markus Elfring's avatar Markus Elfring Committed by Linus Torvalds
Browse files

zsmalloc: Delete an unnecessary check before the function call "iput"

iput() tests whether its argument is NULL and then returns immediately.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.


Signed-off-by: default avatarMarkus Elfring <>
Reviewed-by: default avatarSergey Senozhatsky <>
Acked-by: default avatarMinchan Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fb399b48
......@@ -2174,8 +2174,7 @@ static int zs_register_migration(struct zs_pool *pool)
static void zs_unregister_migration(struct zs_pool *pool)
if (pool->inode)
Supports Markdown
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