git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c843af3
)
vhost: remove useless volatile
author
Zhihong Wang
<zhihong.wang@intel.com>
Fri, 14 Oct 2016 09:34:32 +0000
(17:34 +0800)
committer
Yuanhan Liu
<yuanhan.liu@linux.intel.com>
Wed, 26 Oct 2016 11:39:09 +0000
(13:39 +0200)
last_used_idx is a local var, there is no need to decorate it
by "volatile".
Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Reviewed-by: Jianbo Liu <jianbo.liu@linaro.org>
Tested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.h
patch
|
blob
|
history
diff --git
a/lib/librte_vhost/vhost.h
b/lib/librte_vhost/vhost.h
index
53dbf33
..
17c557f
100644
(file)
--- a/
lib/librte_vhost/vhost.h
+++ b/
lib/librte_vhost/vhost.h
@@
-85,7
+85,7
@@
struct vhost_virtqueue {
uint32_t size;
uint16_t last_avail_idx;
-
volatile uint16_t
last_used_idx;
+
uint16_t
last_used_idx;
#define VIRTIO_INVALID_EVENTFD (-1)
#define VIRTIO_UNINITIALIZED_EVENTFD (-2)