]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs crypto: delete an unnecessary check before the function call "key_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 26 Jun 2015 15:28:55 +0000 (17:28 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:52 +0000 (14:09 -0700)
commit92859a5efdfa71f712ec1d213f43061965d3e9b4
tree67effc4d6087bdc879e6b8c91eac6759f507eefc
parent6c84461c0cb0db3f4f56695ac9944451b34bf431
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/crypto_key.c