diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-07-20 01:17:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-11-03 01:28:06 -0500 |
commit | 05e555642c4613d5a2438351c705bb2119352757 (patch) | |
tree | d33b0f332362330e060b438b04711ca44ff96cfa /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
parent | 53c0a58beb60b76e105a61aae518fd780eec03d9 (diff) | |
download | linux-05e555642c4613d5a2438351c705bb2119352757.tar.gz linux-05e555642c4613d5a2438351c705bb2119352757.tar.bz2 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 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions