[PATCH 02/19] Remove atom field from InputInfoRec.

Peter Hutterer peter.hutterer at who-t.net
Sun Sep 5 19:52:38 PDT 2010


This field was only used in one location where we can use a local variable.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hw/xfree86/common/xf86Xinput.c |    5 +++--
 hw/xfree86/common/xf86Xinput.h |    1 -
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 6673b1e..bbaffd0 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -295,6 +295,7 @@ static DeviceIntPtr
 xf86ActivateDevice(InputInfoPtr pInfo)
 {
     DeviceIntPtr	dev;
+    Atom		atom;
 
     dev = AddInputDevice(serverClient, pInfo->device_control, TRUE);
 
@@ -306,8 +307,8 @@ xf86ActivateDevice(InputInfoPtr pInfo)
         return NULL;
     }
 
-    pInfo->atom = MakeAtom(pInfo->type_name, strlen(pInfo->type_name), TRUE);
-    AssignTypeAndName(dev, pInfo->atom, pInfo->name);
+    atom = MakeAtom(pInfo->type_name, strlen(pInfo->type_name), TRUE);
+    AssignTypeAndName(dev, atom, pInfo->name);
     dev->public.devicePrivate = pInfo;
     pInfo->dev = dev;
 
diff --git a/hw/xfree86/common/xf86Xinput.h b/hw/xfree86/common/xf86Xinput.h
index edc447c..9a3d223 100644
--- a/hw/xfree86/common/xf86Xinput.h
+++ b/hw/xfree86/common/xf86Xinput.h
@@ -122,7 +122,6 @@ typedef struct _InputInfoRec {
 				 int num_valuators);
 
     int			    fd;
-    Atom		    atom;
     DeviceIntPtr	    dev;
     pointer		    private;
     char *		    type_name;
-- 
1.7.2.2



More information about the xorg-devel mailing list