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

Staging: bcm: Replaced member accssing with variable

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 55eb46e9
...@@ -107,30 +107,32 @@ static VOID handle_rx_control_packet(struct bcm_mini_adapter *Adapter, ...@@ -107,30 +107,32 @@ static VOID handle_rx_control_packet(struct bcm_mini_adapter *Adapter,
* the sum of all types of dropped pkt by that * the sum of all types of dropped pkt by that
* tarang only. * tarang only.
*/ */
struct bcm_mibs_dropped_cntrl_msg *msg =
&pTarang->stDroppedAppCntrlMsgs;
switch (*(PUSHORT)skb->data) { switch (*(PUSHORT)skb->data) {
case CM_RESPONSES: case CM_RESPONSES:
pTarang->stDroppedAppCntrlMsgs.cm_responses++; msg->cm_responses++;
break; break;
case CM_CONTROL_NEWDSX_MULTICLASSIFIER_RESP: case CM_CONTROL_NEWDSX_MULTICLASSIFIER_RESP:
pTarang->stDroppedAppCntrlMsgs.cm_control_newdsx_multiclassifier_resp++; msg->cm_control_newdsx_multiclassifier_resp++;
break; break;
case LINK_CONTROL_RESP: case LINK_CONTROL_RESP:
pTarang->stDroppedAppCntrlMsgs.link_control_resp++; msg->link_control_resp++;
break; break;
case STATUS_RSP: case STATUS_RSP:
pTarang->stDroppedAppCntrlMsgs.status_rsp++; msg->status_rsp++;
break; break;
case STATS_POINTER_RESP: case STATS_POINTER_RESP:
pTarang->stDroppedAppCntrlMsgs.stats_pointer_resp++; msg->stats_pointer_resp++;
break; break;
case IDLE_MODE_STATUS: case IDLE_MODE_STATUS:
pTarang->stDroppedAppCntrlMsgs.idle_mode_status++; msg->idle_mode_status++;
break; break;
case AUTH_SS_HOST_MSG: case AUTH_SS_HOST_MSG:
pTarang->stDroppedAppCntrlMsgs.auth_ss_host_msg++; msg->auth_ss_host_msg++;
break; break;
default: default:
pTarang->stDroppedAppCntrlMsgs.low_priority_message++; msg->low_priority_message++;
break; break;
} }
......
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