Al Viro 05e555642c 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>
2024-11-03 01:28:06 -05:00
..
2024-06-15 10:43:06 -07:00
2024-09-23 12:47:06 -07:00
2024-09-29 08:51:30 -07:00
2024-09-19 10:18:15 +02:00
2024-09-17 07:25:37 +02:00
2024-07-29 10:45:54 -07:00
2024-09-03 21:15:26 -07:00
2024-09-19 10:18:15 +02:00
2023-12-01 09:51:44 -08:00
2024-09-27 08:18:43 -07:00
2023-12-29 12:22:29 -08:00
2024-07-18 12:19:20 -07:00
2024-05-30 15:31:38 -07:00
2024-05-17 17:31:24 -07:00
2024-09-18 06:59:44 +02:00