Re: [PATCH] selftests: kvm: replace ternary operator with min()

2022-05-12 Thread Paolo Bonzini
On 5/11/22 14:05, Guo Zhengkui wrote: Fix the following coccicheck warnings: tools/testing/selftests/kvm/lib/s390x/ucall.c:25:15-17: WARNING opportunity for min() tools/testing/selftests/kvm/lib/x86_64/ucall.c:27:15-17: WARNING opportunity for min()

Re: [PATCH] selftests: kvm: replace ternary operator with min()

2022-05-11 Thread Claudio Imbrenda
On Wed, 11 May 2022 20:05:55 +0800 Guo Zhengkui wrote: > Fix the following coccicheck warnings: > > tools/testing/selftests/kvm/lib/s390x/ucall.c:25:15-17: WARNING > opportunity for min() > tools/testing/selftests/kvm/lib/x86_64/ucall.c:27:15-17: WARNING > opportunity for min() >

Re: [PATCH] selftests: kvm: replace ternary operator with min()

2022-05-11 Thread Anup Patel
On Wed, May 11, 2022 at 5:38 PM Guo Zhengkui wrote: > > Fix the following coccicheck warnings: > > tools/testing/selftests/kvm/lib/s390x/ucall.c:25:15-17: WARNING > opportunity for min() > tools/testing/selftests/kvm/lib/x86_64/ucall.c:27:15-17: WARNING > opportunity for min() >

[PATCH] selftests: kvm: replace ternary operator with min()

2022-05-11 Thread Guo Zhengkui
Fix the following coccicheck warnings: tools/testing/selftests/kvm/lib/s390x/ucall.c:25:15-17: WARNING opportunity for min() tools/testing/selftests/kvm/lib/x86_64/ucall.c:27:15-17: WARNING opportunity for min() tools/testing/selftests/kvm/lib/riscv/ucall.c:56:15-17: WARNING opportunity for min()