Commit c0a7a0ac authored by Mike Snitzer's avatar Mike Snitzer

dm thin: remove return code variable in pool_map

Always returns DM_MAPIO_REMAPPED so no need for variable.
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 4c2c845b
......@@ -3447,7 +3447,6 @@ static int pool_ctr(struct dm_target *ti, unsigned int argc, char **argv)
static int pool_map(struct dm_target *ti, struct bio *bio)
{
int r;
struct pool_c *pt = ti->private;
struct pool *pool = pt->pool;
......@@ -3456,10 +3455,9 @@ static int pool_map(struct dm_target *ti, struct bio *bio)
*/
spin_lock_irq(&pool->lock);
bio_set_dev(bio, pt->data_dev->bdev);
r = DM_MAPIO_REMAPPED;
spin_unlock_irq(&pool->lock);
return r;
return DM_MAPIO_REMAPPED;
}
static int maybe_resize_data_dev(struct dm_target *ti, bool *need_commit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment