mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: Remove unnecessary errno save/restore in xf86ReadInput
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@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user