Signed-off-by: Matthias Beyer <m...@beyermatthias.de>
---
 drivers/staging/bcm/PHSModule.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/bcm/PHSModule.c b/drivers/staging/bcm/PHSModule.c
index 47eff76..83bd12b 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;
                        }
                }
-- 
2.0.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to