1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00

msg: remove redundant condition

Found by Coverity.
This commit is contained in:
wm4 2015-12-05 23:53:24 +01:00
parent 19b0b1df51
commit 791228f2ab

View File

@ -632,7 +632,7 @@ const int mp_mpv_log_levels[MSGL_MAX + 1] = {
int mp_msg_find_level(const char *s) int mp_msg_find_level(const char *s)
{ {
for (int n = 0; n < MP_ARRAY_SIZE(mp_log_levels); n++) { 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 n;
} }
return -1; return -1;