提交 66a60543 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: Get rid of the volatile qualifier for a variable in ring_buffer.c

Access to this variable is already serialized via a spin lock. Get
rid of the unnecessary volatile qualifier.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7581578d
...@@ -364,7 +364,7 @@ int hv_ringbuffer_write(struct hv_ring_buffer_info *outring_info, ...@@ -364,7 +364,7 @@ int hv_ringbuffer_write(struct hv_ring_buffer_info *outring_info,
u32 totalbytes_towrite = 0; u32 totalbytes_towrite = 0;
struct scatterlist *sg; struct scatterlist *sg;
volatile u32 next_write_location; u32 next_write_location;
u64 prev_indices = 0; u64 prev_indices = 0;
unsigned long flags; unsigned long flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册