From: Chuck Lever Date: Sat, 6 Dec 2008 00:03:09 +0000 (-0500) Subject: NSM: Remove !nsm check from nsm_release() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=05f3a9af58180d24a9decedd71d4587935782d70;p=openwrt%2Fstaging%2Fblogic.git NSM: Remove !nsm check from nsm_release() The nsm_release() function should never be called with a NULL handle point. If it is, that's a bug. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields --- diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index 0a066a13478e..0792900b6281 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c @@ -288,8 +288,6 @@ found: */ void nsm_release(struct nsm_handle *nsm) { - if (!nsm) - return; if (atomic_dec_and_lock(&nsm->sm_count, &nsm_lock)) { list_del(&nsm->sm_link); spin_unlock(&nsm_lock);