Re: [PATCH] affs: fix shadowed variable sparse warnings

2008-02-08 Thread Joe Perches
On Fri, 2008-02-08 at 18:53 -0800, Harvey Harrison wrote: > diff --git a/fs/affs/file.c b/fs/affs/file.c > index 6e0c939..ac05dc2 100644 > --- a/fs/affs/file.c > +++ b/fs/affs/file.c > @@ -570,11 +570,11 @@ affs_extent_file_ofs(struct inode *inode, u32 newsize) > bh->b_state &= ~(1UL

[PATCH] affs: fix shadowed variable sparse warnings

2008-02-08 Thread Harvey Harrison
Introduce _tmp in the small if-blocks where this is shadowed. fs/affs/file.c:573:8: warning: symbol 'tmp' shadows an earlier one fs/affs/file.c:530:6: originally declared here fs/affs/file.c:714:9: warning: symbol 'tmp' shadows an earlier one fs/affs/file.c:661:6: originally declared here fs/affs/f