diff options
author | Christoph Hellwig | 2023-02-03 16:03:46 +0100 |
---|---|---|
committer | Jens Axboe | 2023-02-03 08:20:05 -0700 |
commit | 180b04d450a7137270c12dbb6bebf1d5e6c0a6f2 (patch) | |
tree | 236d32eb5a01465ae6379e6b7cc2265fe057e996 | |
parent | 27b642b07a4a5eb44dffa94a5171ce468bdc46f9 (diff) |
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>
-rw-r--r-- | block/blk-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 103868856892..0b3226cbf3f2 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -572,7 +572,7 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css, 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 bdi_dev_name(blkg->q->disk->bdi); } |