diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-05-10 07:55:33 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-11 13:49:10 -0700 |
commit | 66a605438146923a048a2ce071831df2a5f64659 (patch) | |
tree | dcf115d959d1b26f790f9f7d33602fc012ad6278 /drivers/staging/hv/ring_buffer.c | |
parent | 7581578d688397d927b882a343a2969ef0cac12a (diff) | |
download | op-kernel-dev-66a605438146923a048a2ce071831df2a5f64659.zip op-kernel-dev-66a605438146923a048a2ce071831df2a5f64659.tar.gz |
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: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/ring_buffer.c')
-rw-r--r-- | drivers/staging/hv/ring_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c index 2a461ddee..badf52a 100644 --- a/drivers/staging/hv/ring_buffer.c +++ b/drivers/staging/hv/ring_buffer.c @@ -364,7 +364,7 @@ int hv_ringbuffer_write(struct hv_ring_buffer_info *outring_info, u32 totalbytes_towrite = 0; struct scatterlist *sg; - volatile u32 next_write_location; + u32 next_write_location; u64 prev_indices = 0; unsigned long flags; |