

We're testing the nullness of `sb' potentially after rereferencing it
(although the compiler will have reordered things to avoid such a bug).

Just remove the test - the superblock pointer shouldn't be null in there.


---

 25-akpm/fs/dquot.c |    3 ---
 1 files changed, 3 deletions(-)

diff -puN fs/dquot.c~dquot-unneeded-test fs/dquot.c
--- 25/fs/dquot.c~dquot-unneeded-test	Mon Apr 19 16:22:45 2004
+++ 25-akpm/fs/dquot.c	Mon Apr 19 16:23:11 2004
@@ -1281,9 +1281,6 @@ int vfs_quota_off(struct super_block *sb
 	int cnt;
 	struct quota_info *dqopt = sb_dqopt(sb);
 
-	if (!sb)
-		goto out;
-
 	/* We need to serialize quota_off() for device */
 	down(&dqopt->dqonoff_sem);
 	for (cnt = 0; cnt < MAXQUOTAS; cnt++) {

_
