lkml.org 
[lkml]   [1999]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.146 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site