]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove temporary variable on generic_file_direct_write()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:21:58 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:09 +0000 (16:52 -0700)
commit7b15755ea18b2669dc15496f38ba98529f5561e3
treed09f274105bc756b5fbd09dcb55302c0191e7e74
parent4d57d551544427c802feb07f4c5caa0efa016670
mm: remove temporary variable on generic_file_direct_write()

'end' shadows earlier one and is not necessary at all.  Remove it and use
'pos' instead.  This removes following sparse warnings:

 mm/filemap.c:2180:24: warning: symbol 'end' shadows an earlier one
 mm/filemap.c:2132:25: originally declared here

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c