瀏覽代碼

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 <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Chuck Lever 16 年之前
父節點
當前提交
05f3a9af58
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      fs/lockd/mon.c

+ 0 - 2
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);