[gnome-settings-daemon] common: Simplify input helper



commit 8ad9589cf22a339d0949a758bfc3479f24a48c47
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 18 18:52:41 2011 +0000

    common: Simplify input helper

 plugins/common/gsd-input-helper.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index 6f51e52..c1051f3 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -40,7 +40,7 @@ supports_xinput_devices (void)
                                 &error);
 }
 
-XDevice*
+XDevice *
 device_is_touchpad (XDeviceInfo deviceinfo)
 {
         XDevice *device;
@@ -101,8 +101,7 @@ touchpad_is_present (void)
                         break;
                 }
         }
-        if (device_info != NULL)
-                XFreeDeviceList (device_info);
+        XFreeDeviceList (device_info);
 
         return retval;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]