From: Matthias Beyer Date: Tue, 15 Jul 2014 07:43:09 +0000 (+0200) Subject: Staging: bcm: PHSModule.c: Replaced member accessing with variable in GetServiceFlowE... X-Git-Tag: v3.17-rc1~123^2~758 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cf423564fae6cab1fafad556e50de473225db834;p=karo-tx-linux.git Staging: bcm: PHSModule.c: Replaced member accessing with variable in GetServiceFlowEntry() Signed-off-by: Matthias Beyer Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/PHSModule.c b/drivers/staging/bcm/PHSModule.c index 47eff7629039..83bd12bf24a3 100644 --- a/drivers/staging/bcm/PHSModule.c +++ b/drivers/staging/bcm/PHSModule.c @@ -959,12 +959,13 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable, struct bcm_phs_entry **ppstServiceFlowEntry) { int i; + struct bcm_phs_entry *curr_sf_list; for (i = 0; i < MAX_SERVICEFLOWS; i++) { - if (psServiceFlowTable->stSFList[i].bUsed) { - if (psServiceFlowTable->stSFList[i].uiVcid == uiVcid) { - *ppstServiceFlowEntry = - &psServiceFlowTable->stSFList[i]; + curr_sf_list = &psServiceFlowTable->stSFList[i]; + if (curr_sf_list->bUsed) { + if (curr_sf_list->uiVcid == uiVcid) { + *ppstServiceFlowEntry = curr_sf_list; return i; } }