Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92859a5e authored by Markus Elfring's avatar Markus Elfring Committed by Jaegeuk Kim
Browse files

f2fs crypto: delete an unnecessary check before the function call "key_put"



The key_put() function 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 <elfring@users.sourceforge.net>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6c84461c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -92,7 +92,6 @@ static void f2fs_free_crypt_info(struct f2fs_crypt_info *ci)
	if (!ci)
		return;

	if (ci->ci_keyring_key)
	key_put(ci->ci_keyring_key);
	crypto_free_ablkcipher(ci->ci_ctfm);
	kmem_cache_free(f2fs_crypt_info_cachep, ci);