diff options
author | Al Viro <[email protected]> | 2024-07-20 01:17:52 -0400 |
---|---|---|
committer | Al Viro <[email protected]> | 2024-11-03 01:28:06 -0500 |
commit | 05e555642c4613d5a2438351c705bb2119352757 (patch) | |
tree | d33b0f332362330e060b438b04711ca44ff96cfa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 53c0a58beb60b76e105a61aae518fd780eec03d9 (diff) |
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions