From c42e31bbee4f6b2f3b414a9bcaeb09ab79776c2a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 3 Mar 2025 13:44:57 +0100 Subject: [PATCH] kdrive: drop unused return statements Drop a bunch of return statements that don't do anything at all. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/kdrive/ephyr/ephyr.c | 3 --- hw/kdrive/src/kinput.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index 069270219..40c7fc8fa 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -1296,7 +1296,6 @@ MouseDisable(KdPointerInfo * pi) { ((EphyrPointerPrivate *) pi->driverPrivate)->enabled = FALSE; RemoveNotifyFd(hostx_get_fd()); - return; } static void @@ -1304,7 +1303,6 @@ MouseFini(KdPointerInfo * pi) { free(pi->driverPrivate); ephyrMouse = NULL; - return; } KdPointerDriver EphyrMouseDriver = { @@ -1368,7 +1366,6 @@ EphyrKeyboardFini(KdKeyboardInfo * ki) { free(ki->driverPrivate); ephyrKbd = NULL; - return; } static void diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index ad5d4b047..52941cb3a 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -311,8 +311,6 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff) return BadImplementation; } - return Success; - case DEVICE_OFF: if (pDev->on == FALSE) { return Success; @@ -327,8 +325,6 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff) return Success; } - return Success; - case DEVICE_CLOSE: if (pDev->on) { if (!pi->driver->Disable) {