diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py
index 55e0a197b567115a2d4331d83e7d6f3865ea071c..a009fc9cf42de80ad31d72a0a8734e6dbc5a7801 100644
--- a/loopy/schedule/__init__.py
+++ b/loopy/schedule/__init__.py
@@ -1003,8 +1003,6 @@ def _generate_loop_schedules_v2(kernel: LoopKernel) -> Sequence[ScheduleItem]:
                 insn_iname, dep_iname = _get_outermost_diverging_inames(
                         loop_tree, insn_loop_inames, dep_loop_inames)
                 dag[LeaveLoop(iname=dep_iname)] |= {EnterLoop(iname=insn_iname)}
-            else:
-                pass
 
             # }}}
 
diff --git a/loopy/tools.py b/loopy/tools.py
index 2f18cfb916e804fe480b47449e8bfca98e503cd5..6faaceb9fa0ce851c6fcf480d2e10c71958c3a50 100644
--- a/loopy/tools.py
+++ b/loopy/tools.py
@@ -683,8 +683,6 @@ def _kernel_to_python(kernel, is_entrypoint=False, var_name="kernel"):
                 option += "atomic, "
         elif isinstance(insn, BarrierInstruction):
             option += (f"mem_kind={insn.mem_kind}, ")
-        else:
-            pass
 
         options[insn.id] = option[:-2]  # get rid of the trailing ", "