From a3edba783bb81e6032a50f059b6263caa02a2150 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 22 Dec 2014 01:15:19 +0000 Subject: [PATCH] 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. --- aft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5