Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bbdd7a5 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman
Browse files

staging: hv: remove ASSERT()s in RingBuffer.c



These ASSERT()s serve no purpose other than for debugging.

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8a62d716
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -72,7 +72,7 @@ GetNextWriteLocation(RING_BUFFER_INFO *RingInfo)
{
{
	u32 next = RingInfo->RingBuffer->WriteIndex;
	u32 next = RingInfo->RingBuffer->WriteIndex;


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


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


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


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


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