diff options
| author | 2025-07-02 12:39:32 +0300 | |
|---|---|---|
| committer | 2025-07-24 17:30:13 +0200 | |
| commit | 2717eb35185581988799bb0d5179409978f36a90 (patch) | |
| tree | 94666858b6c7330ae2879931de75d2524fa45459 /scripts/Makefile.thinlto | |
| parent | xfs: refactor cmp_key_with_cur routines to take advantage of cmp_int() (diff) | |
xfs: use a proper variable name and type for storing a comparison result
Perhaps that's just my silly imagination but 'diff' doesn't look good for
the name of a variable to hold a result of a three-way-comparison
(-1, 0, 1) which is what ->cmp_key_with_cur() does. It implies to contain
an actual difference between the two integer variables but that's not true
anymore after recent refactoring.
Declaring it as int64_t is also misleading now. Plain integer type is
more than enough.
Found by Linux Verification Center (linuxtesting.org).
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
