]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify disk name formatting in check_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 06:25:17 +0000 (08:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:28 +0000 (13:37 -0600)
commitb8058575401d606b484b201a33a980b79cd1601b
tree24444a63eea97b89b8a15abfa1746a66f27e9a9c
parent4fbe4414e56c80331cc1b647dd5edefeaf051378
block: simplify disk name formatting in check_partition

disk_name for partition 0 just copies out the disk_name field.  Replace
the call to disk_name with a %s format specifier.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210727062518.122108-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c