diff options
author | WANG Xuerui <[email protected]> | 2024-02-23 14:36:31 +0800 |
---|---|---|
committer | Huacai Chen <[email protected]> | 2024-02-23 14:36:31 +0800 |
commit | f0f5c4894f89bac9074b45bccc447c3659a0fa6f (patch) | |
tree | 0c9d29fcd857ceb01d706504f9450a3e9a1cc708 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ec83f39d2b078d6dd029bbde601835b5368fc886 (diff) |
LoongArch: KVM: Streamline kvm_check_cpucfg() and improve comments
All the checks currently done in kvm_check_cpucfg can be realized with
early returns, so just do that to avoid extra cognitive burden related
to the return value handling.
While at it, clean up comments of _kvm_get_cpucfg_mask() and
kvm_check_cpucfg(), by removing comments that are merely restatement of
the code nearby, and paraphrasing the rest so they read more natural for
English speakers (that likely are not familiar with the actual Chinese-
influenced grammar).
No functional changes intended.
Reviewed-by: Bibo Mao <[email protected]>
Signed-off-by: WANG Xuerui <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions