Skip to content

Commit

Permalink
adfs: work around bogus sparse warning
Browse files Browse the repository at this point in the history
fs/adfs/dir_f.c:126:4: warning: do-while statement is not a compound statement

Signed-off-by: Harvey Harrison <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hharrison authored and torvalds committed Apr 29, 2008
1 parent 95b570c commit e594905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/adfs/dir_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ adfs_dir_checkbyte(const struct adfs_dir *dir)
ptr.ptr8 = bufoff(bh, i);
end.ptr8 = ptr.ptr8 + last - i;

do
do {
dircheck = *ptr.ptr8++ ^ ror13(dircheck);
while (ptr.ptr8 < end.ptr8);
} while (ptr.ptr8 < end.ptr8);
}

/*
Expand Down

0 comments on commit e594905

Please sign in to comment.