diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-01 09:38:14 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2022-03-02 18:15:35 +0100 |
commit | 977ff73e64151d94811f4ba905419c90573f63e1 (patch) | |
tree | 1a3bc32bfd97c8af94304e39f8ac56205190221b /drivers/md/dm-zoned-target.c | |
parent | dm: remove unnecessary local variables in __bind (diff) | |
download | linux-977ff73e64151d94811f4ba905419c90573f63e1.tar.xz linux-977ff73e64151d94811f4ba905419c90573f63e1.zip |
dm-zoned: remove the ->name field in struct dmz_dev
Just use the %pg format specifier to print the block device name
directly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-zoned-target.c')
-rw-r--r-- | drivers/md/dm-zoned-target.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c index a3f6d3ef3817..cac295cc8840 100644 --- a/drivers/md/dm-zoned-target.c +++ b/drivers/md/dm-zoned-target.c @@ -730,7 +730,6 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path, } dev->bdev = bdev; dev->dev_idx = idx; - (void)bdevname(dev->bdev, dev->name); dev->capacity = bdev_nr_sectors(bdev); if (ti->begin) { |