diff options
author | Bob Peterson <rpeterso@redhat.com> | 2007-12-12 10:24:08 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 03:14:53 -0500 |
commit | b3513fca7e41965d85125c9770ce5f8fd4ff509a (patch) | |
tree | 3747019335ccd0f91bf30bd4a85609db455d7214 /fs/gfs2 | |
parent | 15c7cee7995a9013f1b2f31a15b70e1d2e8ae501 (diff) |
[GFS2] Incremental patch to fix compiler warning
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/rgrp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index d7ff9cf6653f..68c4bf363c46 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -133,10 +133,9 @@ static u32 gfs2_bitfit(unsigned char *buffer, unsigned int buflen, u32 goal, | |||
133 | u32 blk = goal; | 133 | u32 blk = goal; |
134 | unsigned int bit, bitlong; | 134 | unsigned int bit, bitlong; |
135 | unsigned long *plong, plong55; | 135 | unsigned long *plong, plong55; |
136 | static int c = 0; | ||
137 | 136 | ||
138 | byte = buffer + (goal / GFS2_NBBY); | 137 | byte = buffer + (goal / GFS2_NBBY); |
139 | plong = buffer + (goal / GFS2_NBBY); | 138 | plong = (unsigned long *)(buffer + (goal / GFS2_NBBY)); |
140 | bit = (goal % GFS2_NBBY) * GFS2_BIT_SIZE; | 139 | bit = (goal % GFS2_NBBY) * GFS2_BIT_SIZE; |
141 | bitlong = bit; | 140 | bitlong = bit; |
142 | #if BITS_PER_LONG == 32 | 141 | #if BITS_PER_LONG == 32 |
@@ -152,10 +151,8 @@ static u32 gfs2_bitfit(unsigned char *buffer, unsigned int buflen, u32 goal, | |||
152 | blk += sizeof(unsigned long) * GFS2_NBBY; | 151 | blk += sizeof(unsigned long) * GFS2_NBBY; |
153 | continue; | 152 | continue; |
154 | } | 153 | } |
155 | if (((*byte >> bit) & GFS2_BIT_MASK) == old_state) { | 154 | if (((*byte >> bit) & GFS2_BIT_MASK) == old_state) |
156 | c++; | ||
157 | return blk; | 155 | return blk; |
158 | } | ||
159 | bit += GFS2_BIT_SIZE; | 156 | bit += GFS2_BIT_SIZE; |
160 | if (bit >= 8) { | 157 | if (bit >= 8) { |
161 | bit = 0; | 158 | bit = 0; |