From: Andre Noll Date: Mon, 22 Dec 2014 01:15:19 +0000 (+0000) Subject: aft.c: Remove condition which is always false. X-Git-Tag: v0.5.5~29 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=a3edba783bb81e6032a50f059b6263caa02a2150;ds=inline aft.c: Remove condition which is always false. aft_open() returns early if ret is non-negative, so ret is known to be negative at this point. Upgrade the log message severity on open failure from INFO to NOTICE while at it. --- diff --git a/aft.c b/aft.c index 4893f215..a9bc006e 100644 --- a/aft.c +++ b/aft.c @@ -2720,9 +2720,9 @@ static int aft_open(const char *dir) PARA_INFO_LOG("audio file table contains %d files\n", num); return ret; } - PARA_INFO_LOG("failed to open audio file table\n"); + PARA_NOTICE_LOG("failed to open audio file table\n"); audio_file_table = NULL; - if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT)) + if (ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT)) return 1; return ret; }