Commit d52fe04a authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: Shortened lines and replaced member accessing in CopyIpAddrToClassifier()

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb8d0c91
...@@ -222,16 +222,20 @@ CopyIpAddrToClassifier(struct bcm_classifier_rule *pstClassifierEntry, ...@@ -222,16 +222,20 @@ CopyIpAddrToClassifier(struct bcm_classifier_rule *pstClassifierEntry,
void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, bool bFreeAll) void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, bool bFreeAll)
{ {
int i; int i;
struct bcm_targetdsx_buffer *curr_buf;
for (i = 0; i < Adapter->ulTotalTargetBuffersAvailable; i++) { for (i = 0; i < Adapter->ulTotalTargetBuffersAvailable; i++) {
if (Adapter->astTargetDsxBuffer[i].valid) curr_buf = &Adapter->astTargetDsxBuffer[i];
if (curr_buf->valid)
continue; continue;
if ((bFreeAll) || (Adapter->astTargetDsxBuffer[i].tid == TID)) { if ((bFreeAll) || (curr_buf->tid == TID)) {
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "ClearTargetDSXBuffer: found tid %d buffer cleared %lx\n", BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0,
TID, Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer); "ClearTargetDSXBuffer: found tid %d buffer cleared %lx\n",
Adapter->astTargetDsxBuffer[i].valid = 1; TID, curr_buf->ulTargetDsxBuffer);
Adapter->astTargetDsxBuffer[i].tid = 0; curr_buf->valid = 1;
curr_buf->tid = 0;
Adapter->ulFreeTargetBufferCnt++; Adapter->ulFreeTargetBufferCnt++;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment