From: Zhihong Wang Date: Fri, 14 Oct 2016 09:34:32 +0000 (+0800) Subject: vhost: remove useless volatile X-Git-Tag: spdx-start~5495 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b24fb48886045c203aed6477000cb782548c2de0;p=dpdk.git vhost: remove useless volatile last_used_idx is a local var, there is no need to decorate it by "volatile". Signed-off-by: Zhihong Wang Reviewed-by: Jianbo Liu Tested-by: Maxime Coquelin --- diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 53dbf33cb0..17c557f0ae 100644 --- 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)