summaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_native.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-06-07 01:29:04 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2024-11-03 07:28:07 +0100
commit38052c2dd71f5490f34bba21dc358e97fb205ee5 (patch)
treebd1422977552f7e394b218744cd3b3babb50f255 /sound/core/pcm_native.c
parentcss_set_fork(): switch to CLASS(fd_raw, ...) (diff)
downloadlinux-38052c2dd71f5490f34bba21dc358e97fb205ee5.tar.xz
linux-38052c2dd71f5490f34bba21dc358e97fb205ee5.zip
deal with the last remaing boolean uses of fd_file()
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'sound/core/pcm_native.c')
-rw-r--r--sound/core/pcm_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index b465fb6e1f5f..3320cce35a03 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2250,7 +2250,7 @@ static int snd_pcm_link(struct snd_pcm_substream *substream, int fd)
bool nonatomic = substream->pcm->nonatomic;
CLASS(fd, f)(fd);
- if (!fd_file(f))
+ if (fd_empty(f))
return -EBADFD;
if (!is_pcm_file(fd_file(f)))
return -EBADFD;