]> git.baikalelectronics.ru Git - kernel.git/commit
mtd_blkdevs.c: quiet a "symbol shadows" sparse warning
authorhartleys <hartleys@visionengravers.com>
Fri, 16 Oct 2009 12:52:53 +0000 (12:52 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 20 Oct 2009 08:16:21 +0000 (17:16 +0900)
commitc3d43c24418fe68228b42caccee7a2221d94b30b
treecdfd15f81c1e249186cf057899744e0d4b74d201
parent09f2e894b918648213b4e33ede6e97ca7ea3cf48
mtd_blkdevs.c: quiet a "symbol shadows" sparse warning

In register_mtd_blktrans(), the symbol 'ret' is already declared
as an int at the start of the function.  The inner loop declaration
is unnecessary.  Quiets the following sparse warning:

  warning: symbol 'ret' shadows an earlier one

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c