mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
msg: remove redundant condition
Found by Coverity.
This commit is contained in:
parent
19b0b1df51
commit
791228f2ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user