Merge tag 'for-5.20/block-2022-07-29' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / block / bfq-wf2q.c
index f8eb340..983413c 100644 (file)
@@ -1360,6 +1360,8 @@ left:
 /**
  * __bfq_lookup_next_entity - return the first eligible entity in @st.
  * @st: the service tree.
+ * @in_service: whether or not there is an in-service entity for the sched_data
+ *     this active tree belongs to.
  *
  * If there is no in-service entity for the sched_data st belongs to,
  * then return the entity that will be set in service if:
@@ -1472,9 +1474,6 @@ static struct bfq_entity *bfq_lookup_next_entity(struct bfq_sched_data *sd,
                        break;
        }
 
-       if (!entity)
-               return NULL;
-
        return entity;
 }