diff options
author | wm4 <wm4@nowhere> | 2015-12-05 23:53:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-05 23:53:24 +0100 |
commit | 791228f2ab504eb5a40c3cf03508136f3404e4d8 (patch) | |
tree | dcc10c0cfe56482e66a98caccc52af88a03438dc | |
parent | 19b0b1df51c1b0d898880dce1d5f48485e4acc2d (diff) |
msg: remove redundant condition
Found by Coverity.
-rw-r--r-- | common/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c index 42fa770fba..4576754337 100644 --- a/common/msg.c +++ b/common/msg.c @@ -632,7 +632,7 @@ const int mp_mpv_log_levels[MSGL_MAX + 1] = { int mp_msg_find_level(const char *s) { for (int n = 0; n < MP_ARRAY_SIZE(mp_log_levels); n++) { - if (mp_log_levels[n] && mp_log_levels[n] && !strcmp(s, mp_log_levels[n])) + if (mp_log_levels[n] && !strcmp(s, mp_log_levels[n])) return n; } return -1; |