summaryrefslogtreecommitdiff
path: root/block/bfq-wf2q.c
diff options
context:
space:
mode:
authorGuoYong Zheng <zhenggy@chinatelecom.cn>2022-06-17 18:28:04 +0800
committerJens Axboe <axboe@kernel.dk>2022-06-27 06:29:12 -0600
commit6c77b152f5f1324972cdbdb71e9a6e02d601f49f (patch)
tree45a14482ae43f599ba4e2bf2b535000c316f1ed7 /block/bfq-wf2q.c
parent2a9336c42a6abdcef564d522648a684a474a3483 (diff)
bfq: Remove useless code in bfq_lookup_next_entity
It is no need to judge entity is null or not here, directly return entity is ok, so remove it. Signed-off-by: GuoYong Zheng <zhenggy@chinatelecom.cn> Link: https://lore.kernel.org/r/1655461684-19075-1-git-send-email-zhenggy@chinatelecom.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-wf2q.c')
-rw-r--r--block/bfq-wf2q.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c
index f8eb340381cf..089d07022066 100644
--- a/block/bfq-wf2q.c
+++ b/block/bfq-wf2q.c
@@ -1472,9 +1472,6 @@ static struct bfq_entity *bfq_lookup_next_entity(struct bfq_sched_data *sd,
break;
}
- if (!entity)
- return NULL;
-
return entity;
}