From: Harvey Harrison Date: Tue, 29 Apr 2008 07:58:41 +0000 (-0700) Subject: adfs: work around bogus sparse warning X-Git-Tag: v2.6.26-rc1~674 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5949050f2610fa526b154e0d8379218e54f49d1;p=linux-2.6-omap-h63xx.git adfs: work around bogus sparse warning fs/adfs/dir_f.c:126:4: warning: do-while statement is not a compound statement Signed-off-by: Harvey Harrison Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c index b9b2b27b68c..ea7df214692 100644 --- a/fs/adfs/dir_f.c +++ b/fs/adfs/dir_f.c @@ -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); } /*