diff options
author | Tiago Vignatti <vignatti@c3sl.ufpr.br> | 2007-06-15 01:35:29 -0300 |
---|---|---|
committer | Tiago Vignatti <vignatti@c3sl.ufpr.br> | 2007-06-15 01:35:29 -0300 |
commit | c69f4bd5707093a4f998c3fad508f466edbe8334 (patch) | |
tree | bb220b9a3d9cff09a599e65bf789489e10f493e3 /src/evdev.c | |
parent | 64677ecc76d6eae530960b714712921e1bb9d4a7 (diff) |
Clean up a little bit the code.
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/evdev.c b/src/evdev.c index 42bc9df..94cb619 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -267,12 +267,6 @@ EvdevReadInput(InputInfoPtr pInfo) } } -static void -EvdevSigioReadInput (int fd, void *data) -{ - EvdevReadInput ((InputInfoPtr) data); -} - static int EvdevProc(DeviceIntPtr device, int what) { @@ -315,8 +309,8 @@ EvdevProc(DeviceIntPtr device, int what) xf86Msg(X_ERROR, "%s: Unable to grab device (%s).\n", pInfo->name, strerror(errno)); xf86FlushInput (pInfo->fd); - if (!xf86InstallSIGIOHandler (pInfo->fd, EvdevSigioReadInput, pInfo)) - AddEnabledDevice (pInfo->fd); + + xf86AddEnabledDevice(pInfo); device->public.on = TRUE; |