Removing extra call SetDeviceAndProtocol()

SetDeviceAndProtocol() calling in SynapticsPreInit(), extra calling
in DeviceOn() unnecessary.

Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Alexandr Shadchin
2011-02-28 16:38:22 +05:00
committed by Peter Hutterer
parent c731f5878b
commit b332217715

View File

@@ -844,7 +844,6 @@ DeviceOn(DeviceIntPtr dev)
DBG(3, "Synaptics DeviceOn called\n");
SetDeviceAndProtocol(pInfo);
pInfo->fd = xf86OpenSerial(pInfo->options);
if (pInfo->fd == -1) {
xf86Msg(X_WARNING, "%s: cannot open input device\n", pInfo->name);