diff --git a/src/winio.c b/src/winio.c
index 9569f060179db9e797d7c76aa46f89337237e6b5..b329f5c574ffa13360f7a1d15a6cb150566d6ce6 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1775,9 +1775,9 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
 	    return 2;
     }
 #endif
-    else
-	/* Ignore all other mouse events. */
-	return 2;
+
+    /* Ignore all other mouse events. */
+    return 2;
 }
 #endif /* !DISABLE_MOUSE */