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

Fernando Carrijo fcarrijo.lists at gmail.com
Tue Sep 7 18:02:07 PDT 2010


Peter Hutterer <peter.hutterer at who-t.net> wrote:

> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Fernando Carrijo <fcarrijo at freedesktop.org>

> ---
>  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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list