diff options
author | Michael Kelley <[email protected]> | 2024-05-03 08:43:11 -0700 |
---|---|---|
committer | Wei Liu <[email protected]> | 2024-05-28 05:26:01 +0000 |
commit | bb3ca38ef7aa56dcfa7f6e81675c7a39d5ee9bf1 (patch) | |
tree | a97a9cea2ffe9de0b6d642f49ec0657be71b261b /lib/memory-notifier-error-inject.c | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
hv_balloon: Use kernel macros to simplify open coded sequences
Code sequences equivalent to ALIGN(), ALIGN_DOWN(), and umin() are
currently open coded. Change these to use the kernel macro to
improve code clarity. ALIGN() and ALIGN_DOWN() require the
alignment value to be a power of 2, which is the case here.
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions