From e082c2c3dfced1cd20d7c1cb7ee7a661dffc8686 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Nov 2014 09:58:09 +0100 Subject: Remove some unneeded NULL checks Found by Coverity; also see commit 85fb2af3. --- input/keycodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input/keycodes.c') diff --git a/input/keycodes.c b/input/keycodes.c index 5108a8beae..e5ca0bf77d 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -305,7 +305,7 @@ int mp_input_get_keys_from_string(char *name, int max_num_keys, ptr = name; n = 0; - for (end = strchr(ptr, '-'); ptr != NULL; end = strchr(ptr, '-')) { + for (end = strchr(ptr, '-'); ; end = strchr(ptr, '-')) { if (end && end[1] != '\0') { if (end[1] == '-') end = &end[1]; -- cgit v1.2.3