Skip to contentSkip to conversation

nfs: Remove redundant NULL check upon kfree()

PATCH New Davidlohr Bueso 1 participant 1 message Aug 11, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: Remove redundant NULL check upon kfree()

nfs: Remove redundant NULL check upon kfree().

---
 fs/nfs/nfs4proc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
fs/nfs/nfs4proc.c +1 -2
index 7ffbb98..6b44bbf 100644
@@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
 out:
 	if (page)
 		__free_page(page);
-	if (locations)
-		kfree(locations);
+	kfree(locations);
 	return status;
 }
 
Signature · 1 line
1.7.0.4