lustre: Deletion of unnecessary checks before three function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 2 Dec 2014 10:40:33 +0000 (11:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:52:37 +0000 (16:52 -0800)
commit13cb076d3057e0c4b26acb0ee5e5d6ea9b5131c0
treef2d0aec39e0a8e55dc337acaacc3e8c9b03896fa
parent450b31a9d0a601c78995ea0f9cefd07b05a8dc34
lustre: Deletion of unnecessary checks before three function calls

The functions free_ll_remote_perm(), free_rmtperm_hash() and iput() test
whether their argument is NULL and then return immediately.
Thus the test around their calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/remote_perm.c
drivers/staging/lustre/lustre/llite/statahead.c
This page took 0.041464 seconds and 5 git commands to generate.