diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-06-07 01:29:04 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-11-03 07:28:07 +0100 |
commit | 38052c2dd71f5490f34bba21dc358e97fb205ee5 (patch) | |
tree | bd1422977552f7e394b218744cd3b3babb50f255 /sound/core/pcm_native.c | |
parent | css_set_fork(): switch to CLASS(fd_raw, ...) (diff) | |
download | linux-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.c | 2 |
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; |