diff options
author | hartleys <hartleys@visionengravers.com> | 2009-10-16 08:52:53 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-10-20 04:16:21 -0400 |
commit | 6f4e137e9af8745ccaddaf5dcb037a1175089e1c (patch) | |
tree | cdfd15f81c1e249186cf057899744e0d4b74d201 /drivers/mtd | |
parent | 266dead21675aeb89407b1213788cd924353d5e1 (diff) |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 0acbf4f5be50..955226d74808 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -388,7 +388,7 @@ int register_mtd_blktrans(struct mtd_blktrans_ops *tr) | |||
388 | tr->blkcore_priv->thread = kthread_run(mtd_blktrans_thread, tr, | 388 | tr->blkcore_priv->thread = kthread_run(mtd_blktrans_thread, tr, |
389 | "%sd", tr->name); | 389 | "%sd", tr->name); |
390 | if (IS_ERR(tr->blkcore_priv->thread)) { | 390 | if (IS_ERR(tr->blkcore_priv->thread)) { |
391 | int ret = PTR_ERR(tr->blkcore_priv->thread); | 391 | ret = PTR_ERR(tr->blkcore_priv->thread); |
392 | blk_cleanup_queue(tr->blkcore_priv->rq); | 392 | blk_cleanup_queue(tr->blkcore_priv->rq); |
393 | unregister_blkdev(tr->major, tr->name); | 393 | unregister_blkdev(tr->major, tr->name); |
394 | kfree(tr->blkcore_priv); | 394 | kfree(tr->blkcore_priv); |