aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-12-05 23:53:24 +0100
committerGravatar wm4 <wm4@nowhere>2015-12-05 23:53:24 +0100
commit791228f2ab504eb5a40c3cf03508136f3404e4d8 (patch)
treedcc10c0cfe56482e66a98caccc52af88a03438dc
parent19b0b1df51c1b0d898880dce1d5f48485e4acc2d (diff)
msg: remove redundant condition
Found by Coverity.
-rw-r--r--common/msg.c2
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;