Re: [PATCH 1/2] config_odev_add*_attribute: Don't add the attribute to the list twice

2014-03-10 Thread Peter Hutterer
On Fri, Mar 07, 2014 at 11:22:33AM +0100, Hans de Goede wrote: Don't do the xorg_list_append a 2nd time when updating existing attributes, while at it add a helper function for this to avoid code duplication. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer

[PATCH 1/2] config_odev_add*_attribute: Don't add the attribute to the list twice

2014-03-07 Thread Hans de Goede
Don't do the xorg_list_append a 2nd time when updating existing attributes, while at it add a helper function for this to avoid code duplication. Signed-off-by: Hans de Goede hdego...@redhat.com --- config/config.c | 31 +-- 1 file changed, 21 insertions(+), 10