Commit 927fd8f89aa2bff2ad788dddfe74636d263fde5f

Ran Benita 2017-04-27T19:17:53

state: remove unneeded NULL check xkb_filter_new() cannot return NULL. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/state.c b/src/state.c
index 24d1a9a..0c86a34 100644
--- a/src/state.c
+++ b/src/state.c
@@ -567,9 +567,6 @@ xkb_filter_apply_all(struct xkb_state *state,
         return;
 
     filter = xkb_filter_new(state);
-    if (!filter)
-        return; /* WSGO */
-
     filter->key = key;
     filter->func = filter_action_funcs[action->type].func;
     filter->action = *action;