]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: remove pointless strdup_if_nonnull
authorNeilBrown <neilb@suse.com>
Thu, 23 Mar 2017 08:57:36 +0000 (16:57 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 25 Apr 2017 21:25:54 +0000 (17:25 -0400)
commit7e3232f4d4a39081cff47ddf3309c52d579e9d77
tree925c2fb9700abf15c2a739645739fd9edf5577e2
parenta6855f6bc4ac6929271d38eef55e2a270d7a444a
nfsd4: remove pointless strdup_if_nonnull

kstrdup() already checks for NULL.

(Brought to our attention by Jason Yann noticing (from sparse output)
that it should have been declared static.)

Signed-off-by: NeilBrown <neilb@suse.com>
Reported-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c