]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Deletion of unnecessary checks before the function call "nfs_put_client"
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 18 Nov 2014 12:23:43 +0000 (13:23 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Nov 2014 01:07:27 +0000 (20:07 -0500)
commitea940d530ff2d25232c9501efd8d066869b8f1ae
treef8b2c40b78cfa1714e606e79ffc36363ece0dc8f
parent3111ab5bfd16c8ab1b26db8577cadd27cdb37a23
NFS: Deletion of unnecessary checks before the function call "nfs_put_client"

The nfs_put_client() 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: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayoutdev.c
fs/nfs/nfs4client.c