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

Staging: bcm: PHSModule.c: Replaced member accessing with variable in GetServiceFlowEntry()

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 14d8e915
...@@ -959,12 +959,13 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable, ...@@ -959,12 +959,13 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable,
struct bcm_phs_entry **ppstServiceFlowEntry) struct bcm_phs_entry **ppstServiceFlowEntry)
{ {
int i; int i;
struct bcm_phs_entry *curr_sf_list;
for (i = 0; i < MAX_SERVICEFLOWS; i++) { for (i = 0; i < MAX_SERVICEFLOWS; i++) {
if (psServiceFlowTable->stSFList[i].bUsed) { curr_sf_list = &psServiceFlowTable->stSFList[i];
if (psServiceFlowTable->stSFList[i].uiVcid == uiVcid) { if (curr_sf_list->bUsed) {
*ppstServiceFlowEntry = if (curr_sf_list->uiVcid == uiVcid) {
&psServiceFlowTable->stSFList[i]; *ppstServiceFlowEntry = curr_sf_list;
return i; return i;
} }
} }
......
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