On 2017?04?16? 03:22, Dan Carpenter wrote:> There is an || vs && typo so the assert can never be triggered.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
>
> diff --git a/tools/virtio/ringtest/main.c b/tools/virtio/ringtest/main.c
> index 022ae95a06bd..453ca3c21193 100644
> --- a/tools/virtio/ringtest/main.c
> +++ b/tools/virtio/ringtest/main.c
> @@ -87,7 +87,7 @@ void set_affinity(const char *arg)
> cpu = strtol(arg, &endptr, 0);
> assert(!*endptr);
>
> - assert(cpu >= 0 || cpu < CPU_SETSIZE);
> + assert(cpu >= 0 && cpu < CPU_SETSIZE);
>
> self = pthread_self();
> CPU_ZERO(&cpuset);
Acked-by: Jason Wang <jasowang at redhat.com>