* or repositiong of an entity that does not coincide with
         * sd->next_in_service, then a full lookup in the active tree
         * can be avoided. In fact, it is enough to check whether the
-        * just-modified entity has a higher priority than
-        * sd->next_in_service, or, even if it has the same priority
-        * as sd->next_in_service, is eligible and has a lower virtual
+        * just-modified entity has the same priority as
+        * sd->next_in_service, is eligible and has a lower virtual
         * finish time than sd->next_in_service. If this compound
         * condition holds, then the new entity becomes the new
         * next_in_service. Otherwise no change is needed.
 
                /*
                 * If there is already a next_in_service candidate
-                * entity, then compare class priorities or timestamps
-                * to decide whether to replace sd->service_tree with
-                * new_entity.
+                * entity, then compare timestamps to decide whether
+                * to replace sd->service_tree with new_entity.
                 */
                if (next_in_service) {
                        unsigned int new_entity_class_idx =
                        struct bfq_service_tree *st =
                                sd->service_tree + new_entity_class_idx;
 
-                       /*
-                        * For efficiency, evaluate the most likely
-                        * sub-condition first.
-                        */
                        replace_next =
                                (new_entity_class_idx ==
                                 bfq_class_idx(next_in_service)
                                 !bfq_gt(new_entity->start, st->vtime)
                                 &&
                                 bfq_gt(next_in_service->finish,
-                                       new_entity->finish))
-                               ||
-                               new_entity_class_idx <
-                               bfq_class_idx(next_in_service);
+                                       new_entity->finish));
                }
 
                if (replace_next)