Browse Source

nfs: Remove redundant NULL check upon kfree()

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Davidlohr Bueso 15 năm trước cách đây
mục cha
commit
5d7ca35a18
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      fs/nfs/nfs4proc.c

+ 1 - 2
fs/nfs/nfs4proc.c

@@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
 out:
 out:
 	if (page)
 	if (page)
 		__free_page(page);
 		__free_page(page);
-	if (locations)
-		kfree(locations);
+	kfree(locations);
 	return status;
 	return status;
 }
 }