Skip to content

Commit

Permalink
staging: hv: remove ASSERT()s in RingBuffer.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 8a62d71 commit 1bbdd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/hv/RingBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ GetNextWriteLocation(RING_BUFFER_INFO *RingInfo)
{
u32 next = RingInfo->RingBuffer->WriteIndex;

ASSERT(next < RingInfo->RingDataSize);
/* ASSERT(next < RingInfo->RingDataSize); */

return next;
}
Expand Down Expand Up @@ -106,7 +106,7 @@ GetNextReadLocation(RING_BUFFER_INFO *RingInfo)
{
u32 next = RingInfo->RingBuffer->ReadIndex;

ASSERT(next < RingInfo->RingDataSize);
/* ASSERT(next < RingInfo->RingDataSize); */

return next;
}
Expand All @@ -126,7 +126,7 @@ GetNextReadLocationWithOffset(RING_BUFFER_INFO *RingInfo, u32 Offset)
{
u32 next = RingInfo->RingBuffer->ReadIndex;

ASSERT(next < RingInfo->RingDataSize);
/* ASSERT(next < RingInfo->RingDataSize); */
next += Offset;
next %= RingInfo->RingDataSize;

Expand Down

0 comments on commit 1bbdd7a

Please sign in to comment.