mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-04-09 08:21:21 -04:00
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:
parent
1ab0b4b53c
commit
4abfa950e5
1 changed files with 3 additions and 3 deletions
|
|
@ -1445,11 +1445,11 @@ static int sndstat_open(int flags, int *_errno) {
|
||||||
|
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__": sndstat_open()\n");
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": sndstat_open()\n");
|
||||||
|
|
||||||
if (flags != O_RDONLY
|
|
||||||
#ifdef O_LARGEFILE
|
#ifdef O_LARGEFILE
|
||||||
&& flags != (O_RDONLY|O_LARGEFILE)
|
if (flags != (O_RDONLY|O_LARGEFILE)) {
|
||||||
|
#else
|
||||||
|
if (flags != O_RDONLY) {
|
||||||
#endif
|
#endif
|
||||||
) {
|
|
||||||
*_errno = EACCES;
|
*_errno = EACCES;
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__": bad access!\n");
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": bad access!\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue