提交 4f6d9bfc 编写于 作者: D Dan Carpenter 提交者: Michael S. Tsirkin

ringtest: fix an assert statement

There is an || vs && typo so the assert can never be triggered.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Acked-by: NJason Wang <jasowang@redhat.com>
上级 a351e9b9
...@@ -86,7 +86,7 @@ void set_affinity(const char *arg) ...@@ -86,7 +86,7 @@ void set_affinity(const char *arg)
cpu = strtol(arg, &endptr, 0); cpu = strtol(arg, &endptr, 0);
assert(!*endptr); assert(!*endptr);
assert(cpu >= 0 || cpu < CPU_SETSIZE); assert(cpu >= 0 && cpu < CPU_SETSIZE);
self = pthread_self(); self = pthread_self();
CPU_ZERO(&cpuset); CPU_ZERO(&cpuset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册