dinput: Remove unused variables

Andrew Talbot andrew.talbot at talbotville.com
Tue Apr 15 15:33:26 CDT 2008


Changelog:
    dinput: Remove unused variables.

diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c
index e9b8790..222dfb5 100644
--- a/dlls/dinput/joystick_linux.c
+++ b/dlls/dinput/joystick_linux.c
@@ -142,13 +142,12 @@ static INT find_joystick_devices(void)
     {
         CHAR device_name[MAX_PATH], *str;
         INT len;
-        int fd;
 
         len = sprintf(device_name, "%s%d", JOYDEV_NEW, i) + 1;
-        if ((fd = open(device_name, O_RDONLY)) < 0)
+        if (open(device_name, O_RDONLY) < 0)
         {
             len = sprintf(device_name, "%s%d", JOYDEV_OLD, i) + 1;
-            if ((fd = open(device_name, O_RDONLY)) < 0) continue;
+            if (open(device_name, O_RDONLY) < 0) continue;
         }
 
         if (!(str = HeapAlloc(GetProcessHeap(), 0, len))) break;



More information about the wine-patches mailing list