audio: Remove extraneous parentheses around equality comparisons.
This commit is contained in:
parent
834378183a
commit
2cbb6f3332
|
@ -562,7 +562,7 @@ static int ESD_AddRingMessage(ESD_MSG_RING* mr, enum win_wm_message msg, DWORD p
|
|||
HANDLE hEvent = INVALID_HANDLE_VALUE;
|
||||
|
||||
EnterCriticalSection(&mr->msg_crst);
|
||||
if ((mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size)))
|
||||
if (mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size))
|
||||
{
|
||||
int old_ring_buffer_size = mr->ring_buffer_size;
|
||||
mr->ring_buffer_size += ESD_RING_BUFFER_INCREMENT;
|
||||
|
|
|
@ -488,7 +488,7 @@ static int NAS_AddRingMessage(MSG_RING* mr, enum win_wm_message msg, DWORD param
|
|||
HANDLE hEvent = INVALID_HANDLE_VALUE;
|
||||
|
||||
EnterCriticalSection(&mr->msg_crst);
|
||||
if ((mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size)))
|
||||
if (mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size))
|
||||
{
|
||||
int old_ring_buffer_size = mr->ring_buffer_size;
|
||||
mr->ring_buffer_size += NAS_RING_BUFFER_INCREMENT;
|
||||
|
|
Loading…
Reference in New Issue