summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-dust.c
diff options
context:
space:
mode:
authorBryan Gurney <bgurney@redhat.com>2019-12-05 23:08:37 +0100
committerMike Snitzer <snitzer@redhat.com>2020-01-07 17:43:36 +0100
commit88e7cafdcae8bc6354804c685379784c55e276ca (patch)
tree46b382567aa815c22a72c60eb9c7f5b85fe9ea4b /drivers/md/dm-dust.c
parentLinux 5.5-rc5 (diff)
downloadlinux-88e7cafdcae8bc6354804c685379784c55e276ca.tar.xz
linux-88e7cafdcae8bc6354804c685379784c55e276ca.zip
dm dust: change ret to r in dust_map_write
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>
Diffstat (limited to 'drivers/md/dm-dust.c')
-rw-r--r--drivers/md/dm-dust.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-dust.c b/drivers/md/dm-dust.c
index eb37584427a4..ff03b90072c5 100644
--- a/drivers/md/dm-dust.c
+++ b/drivers/md/dm-dust.c
@@ -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)