padsp: remove the warning logical 'and' of equal expressions

`O_RDONLY|O_LARGEFILE` is same as `O_RDONLY`, equal to 0
This commit is contained in:
hubenchang 2020-08-10 20:22:45 +08:00 committed by Plan C
parent 1ab0b4b53c
commit 4abfa950e5

View file

@ -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;