diff options
author | GuoYong Zheng <zhenggy@chinatelecom.cn> | 2022-06-17 12:28:04 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-27 14:29:12 +0200 |
commit | 6c77b152f5f1324972cdbdb71e9a6e02d601f49f (patch) | |
tree | 45a14482ae43f599ba4e2bf2b535000c316f1ed7 /block/bfq-wf2q.c | |
parent | block: move blk_queue_get_max_sectors to blk.h (diff) | |
download | linux-6c77b152f5f1324972cdbdb71e9a6e02d601f49f.tar.xz linux-6c77b152f5f1324972cdbdb71e9a6e02d601f49f.zip |
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 '')
-rw-r--r-- | block/bfq-wf2q.c | 3 |
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; } |