From 4abfa950e5f34cd2be7631f83c801b4878cdc9b8 Mon Sep 17 00:00:00 2001 From: hubenchang Date: Mon, 10 Aug 2020 20:22:45 +0800 Subject: [PATCH] padsp: remove the warning logical 'and' of equal expressions `O_RDONLY|O_LARGEFILE` is same as `O_RDONLY`, equal to 0 --- src/utils/padsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/padsp.c b/src/utils/padsp.c index a53b161c2..7018af121 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -1445,11 +1445,11 @@ static int sndstat_open(int flags, int *_errno) { debug(DEBUG_LEVEL_NORMAL, __FILE__": sndstat_open()\n"); - if (flags != O_RDONLY #ifdef O_LARGEFILE - && flags != (O_RDONLY|O_LARGEFILE) + if (flags != (O_RDONLY|O_LARGEFILE)) { +#else + if (flags != O_RDONLY) { #endif - ) { *_errno = EACCES; debug(DEBUG_LEVEL_NORMAL, __FILE__": bad access!\n"); goto fail;