[syslinux:elflink] xfs: Make for-statement declaration more readable
syslinux-bot for Paulo Alcantara
pcacjr at zytor.com
Tue Nov 27 12:57:09 PST 2012
Commit-ID: f29e5273bc06150d00f1be40d78108c6fbb9b904
Gitweb: http://www.syslinux.org/commit/f29e5273bc06150d00f1be40d78108c6fbb9b904
Author: Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Sat, 14 Jul 2012 20:23:39 -0300
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 21 Jul 2012 01:21:46 -0300
xfs: Make for-statement declaration more readable
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
core/fs/xfs/xfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index 85414ae..1a6e30f 100644
--- a/core/fs/xfs/xfs.c
+++ b/core/fs/xfs/xfs.c
@@ -423,7 +423,7 @@ static struct inode *xfs_iget_root(struct fs_info *fs)
XFS_PVT(inode)->i_chunk_offset = 0;
rec = (xfs_inobt_rec_t *)((uint8_t *)ibt_hdr + sizeof *ibt_hdr);
- for (i = be16_to_cpu(ibt_hdr->bb_numrecs); i--; rec++) {
+ for (i = be16_to_cpu(ibt_hdr->bb_numrecs); i; i--, rec++) {
xfs_debug("freecount %lu free 0x%llx", be32_to_cpu(rec->ir_freecount),
be64_to_cpu(rec->ir_free));
More information about the Syslinux-commits
mailing list