[PATCH 04/19] xfree86: skip a few NULL initialization, calloc does it for us.

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


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

diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 538a98b..d5d03e9 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -666,12 +666,6 @@ xf86AllocateInput(InputDriverPtr drv, IDevPtr idev)
     new->fd = -1;
     new->name = idev->identifier;
     new->type_name = "UNKNOWN";
-    new->device_control = NULL;
-    new->read_input = NULL;
-    new->control_proc = NULL;
-    new->switch_mode = NULL;
-    new->dev = NULL;
-    new->private = NULL;
     new->conf_idev = idev;
 
     xf86CollectInputOptions(new, (const char**)drv->default_options, NULL);
-- 
1.7.2.2



More information about the xorg-devel mailing list