mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
blk-cgroup: remove the !bdi->dev check in blkg_dev_name
bdi_dev_name already performs the same check. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20230203150400.3199230-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
27b642b07a
commit
180b04d450
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css,
|
||||||
|
|
||||||
const char *blkg_dev_name(struct blkcg_gq *blkg)
|
const char *blkg_dev_name(struct blkcg_gq *blkg)
|
||||||
{
|
{
|
||||||
if (!blkg->q->disk || !blkg->q->disk->bdi->dev)
|
if (!blkg->q->disk)
|
||||||
return NULL;
|
return NULL;
|
||||||
return bdi_dev_name(blkg->q->disk->bdi);
|
return bdi_dev_name(blkg->q->disk->bdi);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue