input: Fix trailing whitspaces and indent.
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 17 Sep 2013 09:54:09 +0000 (10:54 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 21 Sep 2013 18:18:45 +0000 (11:18 -0700)
Just some cosmetics to conform to the wayland coding style.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
src/input.c

index 9c30460..fb5bfee 100644 (file)
@@ -238,7 +238,7 @@ find_resource_for_surface(struct wl_list *list, struct weston_surface *surface)
 
        if (!surface->resource)
                return NULL;
-       
+
        return wl_resource_find_for_client(list, wl_resource_get_client(surface->resource));
 }
 
@@ -344,7 +344,7 @@ weston_keyboard_create(void)
 
        keyboard = zalloc(sizeof *keyboard);
        if (keyboard == NULL)
-           return NULL;
+               return NULL;
 
        wl_list_init(&keyboard->resource_list);
        wl_array_init(&keyboard->keys);
@@ -1350,7 +1350,7 @@ weston_compositor_xkb_init(struct weston_compositor *ec,
        return 0;
 }
 
-static void 
+static void
 weston_xkb_info_destroy(struct weston_xkb_info *xkb_info)
 {
        if (--xkb_info->ref_count > 0)
@@ -1381,7 +1381,7 @@ weston_compositor_xkb_destroy(struct weston_compositor *ec)
        free((char *) ec->xkb_names.layout);
        free((char *) ec->xkb_names.variant);
        free((char *) ec->xkb_names.options);
-       
+
        if (ec->xkb_info)
                weston_xkb_info_destroy(ec->xkb_info);
        xkb_context_unref(ec->xkb_context);
@@ -1479,7 +1479,7 @@ weston_compositor_build_global_keymap(struct weston_compositor *ec)
        }
 
        ec->xkb_info = weston_xkb_info_create(keymap);
-       if (ec->xkb_info == NULL) 
+       if (ec->xkb_info == NULL)
                return -1;
 
        return 0;