]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Delete a check before the function call "key_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 26 Jun 2015 16:18:54 +0000 (18:18 +0200)
committerTyler Hicks <tyhicks@canonical.com>
Tue, 18 Aug 2015 22:29:49 +0000 (17:29 -0500)
commit39625f487677a2a5c11a65956be43da64b4a145f
tree1fdf330c968fa00eb98301d8c7c390005866c7c9
parent7dc83c00dc1c0d9e26f8f36605410c374d4bf00d
eCryptfs: Delete a 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 this call might not be needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/crypto.c