ringtest: fix an assert statement

There is an || vs && typo so the assert can never be triggered.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
This commit is contained in:
Dan Carpenter 2017-04-15 22:22:14 +03:00 • committed by Michael S. Tsirkin
commit 4f6d9bfc88

View file

@ -86,7 +86,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);