OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a351e9b
)
ringtest: fix an assert statement
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 15 Apr 2017 19:22:14 +0000
(22:22 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 2 May 2017 20:41:42 +0000
(23:41 +0300)
There is an || vs && typo so the assert can never be triggered.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
tools/virtio/ringtest/main.c
patch
|
blob
|
history
diff --git
a/tools/virtio/ringtest/main.c
b/tools/virtio/ringtest/main.c
index
f31353f
..
2801ab7
100644
(file)
--- a/
tools/virtio/ringtest/main.c
+++ b/
tools/virtio/ringtest/main.c
@@
-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);