GFS2: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 18 Nov 2014 10:31:23 +0000 (11:31 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 18 Nov 2014 10:57:58 +0000 (10:57 +0000)
commit30badc9543490f41497c42f004db02f1e8a29341
treedc35b07393d753b2b7b51d7c3a6769ac9c44e47f
parent2e60d7683c8d2ea21317f6d9f4cd3bf5428ce162
GFS2: Deletion of unnecessary checks before two function calls

The functions iput() and put_pid() test whether their argument is NULL
and then return 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: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c