diff options
author | 2024-06-06 19:29:04 -0400 | |
---|---|---|
committer | 2024-11-03 01:28:07 -0500 | |
commit | 38052c2dd71f5490f34bba21dc358e97fb205ee5 (patch) | |
tree | bd1422977552f7e394b218744cd3b3babb50f255 /include/linux/cleanup.h | |
parent | css_set_fork(): switch to CLASS(fd_raw, ...) (diff) | |
download | wireguard-linux-38052c2dd71f5490f34bba21dc358e97fb205ee5.tar.xz wireguard-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 'include/linux/cleanup.h')
-rw-r--r-- | include/linux/cleanup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cleanup.h b/include/linux/cleanup.h index 038b2d523bf8..875c998275c0 100644 --- a/include/linux/cleanup.h +++ b/include/linux/cleanup.h @@ -234,7 +234,7 @@ const volatile void * __must_check_fn(const volatile void *val) * DEFINE_CLASS(fdget, struct fd, fdput(_T), fdget(fd), int fd) * * CLASS(fdget, f)(fd); - * if (!fd_file(f)) + * if (fd_empty(f)) * return -EBADF; * * // use 'f' without concern |