[PATCH xserver 3/9] xfree86: Remove unnecessary errno save/restore in xf86ReadInput
Keith Packard
keithp at keithp.com
Wed May 11 20:54:52 UTC 2016
When this code was called from SIGIO, saving and restoring errno could
possibly have made sense in some strange environment. Now that this
will not be called from a signal handler, there is no reason to do that.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
hw/xfree86/common/xf86Events.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 81416ed..df8c7b6 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -298,12 +298,9 @@ xf86Wakeup(void *blockData, int err, void *pReadmask)
static void
xf86ReadInput(int fd, int ready, void *closure)
{
- int errno_save = errno;
InputInfoPtr pInfo = closure;
pInfo->read_input(pInfo);
-
- errno = errno_save;
}
/*
--
2.8.0.rc3
More information about the xorg-devel
mailing list