Messages in this thread Patch in this message | | | Date | Thu, 25 Nov 1999 23:19:10 +0100 | From | Daniel Roesen <> | Subject | [PATCH] Fix compilation warnings in dquot.c of 2.2.14pre8 |
| |
Hi!
Just a cleanup patch. Fixes two warnings when compiling dquot.c in 2.2.14pre8.
Daniel
--- dquot.c.orig Thu Nov 25 17:50:50 1999 +++ dquot.c Thu Nov 25 17:52:12 1999 @@ -539,7 +539,7 @@ struct dquot *get_empty_dquot(void) { struct dquot *dquot; - int count; + int count=0; repeat: dquot = find_best_free(); @@ -732,7 +732,7 @@ } inode->i_flags &= ~S_QUOTA; put_it: - if (dquot != NODQUOT) + if (dquot != NODQUOT) { if (dqput_blocks(dquot)) { spin_unlock(&inode_lock); /* We may block so drop the lock... */ dqput(dquot); @@ -742,6 +742,8 @@ } else dqput(dquot); /* dqput() won't block so we can hold locks... */ + } + return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |