Skip to content

Commit

Permalink
dm dust: change ret to r in dust_map_write
Browse files Browse the repository at this point in the history
In the dust_map_write() function, change the return code variable
"ret" to "r", to match the convention of the other device-mapper
targets.

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Bryan Gurney authored and Mike Snitzer committed Jan 7, 2020
1 parent c79f46a commit 88e7caf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/md/dm-dust.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,16 @@ static int dust_map_write(struct dust_device *dd, sector_t thisblock,
bool fail_read_on_bb)
{
unsigned long flags;
int ret = DM_MAPIO_REMAPPED;
int r = DM_MAPIO_REMAPPED;

if (fail_read_on_bb) {
thisblock >>= dd->sect_per_block_shift;
spin_lock_irqsave(&dd->dust_lock, flags);
ret = __dust_map_write(dd, thisblock);
r = __dust_map_write(dd, thisblock);
spin_unlock_irqrestore(&dd->dust_lock, flags);
}

return ret;
return r;
}

static int dust_map(struct dm_target *ti, struct bio *bio)
Expand Down

0 comments on commit 88e7caf

Please sign in to comment.