diff options
author | 2024-07-20 01:17:52 -0400 | |
---|---|---|
committer | 2024-11-03 01:28:06 -0500 | |
commit | 05e555642c4613d5a2438351c705bb2119352757 (patch) | |
tree | d33b0f332362330e060b438b04711ca44ff96cfa /fs/timerfd.c | |
parent | net/socket.c: switch to CLASS(fd) (diff) | |
download | wireguard-linux-05e555642c4613d5a2438351c705bb2119352757.tar.xz wireguard-linux-05e555642c4613d5a2438351c705bb2119352757.zip |
regularize emptiness checks in fini_module(2) and vfs_dedupe_file_range()
With few exceptions emptiness checks are done as fd_file(...) in boolean
context (usually something like if (!fd_file(f))...); those will be
taken care of later.
However, there's a couple of places where we do those checks as
'store fd_file(...) into a variable, then check if this variable is
NULL' and those are harder to spot.
Get rid of those now.
use fd_empty() instead of extracting file and then checking it for NULL.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions