diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2010-05-05 15:27:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 14:36:14 -0400 |
commit | 1bbdd7a5380239533c4bb648c5d5d9510f12974b (patch) | |
tree | bf6370aff6c829d1bfbec27d43516a029caac4de /drivers | |
parent | 8a62d7168af111bb80d041e6ccf74987056c79d3 (diff) |
staging: hv: remove ASSERT()s in RingBuffer.c
These ASSERT()s serve no purpose other than for debugging.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/RingBuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index 08b3c5567e9..ee481fd972b 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c | |||
@@ -72,7 +72,7 @@ GetNextWriteLocation(RING_BUFFER_INFO *RingInfo) | |||
72 | { | 72 | { |
73 | u32 next = RingInfo->RingBuffer->WriteIndex; | 73 | u32 next = RingInfo->RingBuffer->WriteIndex; |
74 | 74 | ||
75 | ASSERT(next < RingInfo->RingDataSize); | 75 | /* ASSERT(next < RingInfo->RingDataSize); */ |
76 | 76 | ||
77 | return next; | 77 | return next; |
78 | } | 78 | } |
@@ -106,7 +106,7 @@ GetNextReadLocation(RING_BUFFER_INFO *RingInfo) | |||
106 | { | 106 | { |
107 | u32 next = RingInfo->RingBuffer->ReadIndex; | 107 | u32 next = RingInfo->RingBuffer->ReadIndex; |
108 | 108 | ||
109 | ASSERT(next < RingInfo->RingDataSize); | 109 | /* ASSERT(next < RingInfo->RingDataSize); */ |
110 | 110 | ||
111 | return next; | 111 | return next; |
112 | } | 112 | } |
@@ -126,7 +126,7 @@ GetNextReadLocationWithOffset(RING_BUFFER_INFO *RingInfo, u32 Offset) | |||
126 | { | 126 | { |
127 | u32 next = RingInfo->RingBuffer->ReadIndex; | 127 | u32 next = RingInfo->RingBuffer->ReadIndex; |
128 | 128 | ||
129 | ASSERT(next < RingInfo->RingDataSize); | 129 | /* ASSERT(next < RingInfo->RingDataSize); */ |
130 | next += Offset; | 130 | next += Offset; |
131 | next %= RingInfo->RingDataSize; | 131 | next %= RingInfo->RingDataSize; |
132 | 132 | ||