OSDN Git Service

staging: bcm: Fix checkpatch errors
authorJade Bilkey <herself@thefumon.com>
Mon, 17 Mar 2014 23:45:24 +0000 (19:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 18:48:42 +0000 (11:48 -0700)
This patch fixes the following checkpatch errors:

ERROR: space prohibited after that '&' (ctx:WxW)
+ memcpy((PVOID) & pstHostMibs->
                 ^

ERROR: space prohibited after that '&' (ctx:WxW)
+        (PVOID) & Adapter->
                 ^

ERROR: space prohibited after that '&' (ctx:WxW)
+ memcpy((PVOID) & pstHostMibs->astSFtable[nSfIndex],
                 ^

ERROR: space prohibited after that '&' (ctx:WxW)
+        (PVOID) & Adapter->PackInfo[nSfIndex],
                 ^

Signed-off-by: Jade Bilkey <herself@thefumon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/hostmibs.c

index f55300d..39ace55 100644 (file)
@@ -27,9 +27,9 @@ INT ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, struct bcm_host_stats_m
        /* Copy the classifier Table */
        for (nClassifierIndex = 0; nClassifierIndex < MAX_CLASSIFIERS; nClassifierIndex++) {
                if (Adapter->astClassifierTable[nClassifierIndex].bUsed == TRUE)
-                       memcpy((PVOID) & pstHostMibs->
+                       memcpy((PVOID) &pstHostMibs->
                               astClassifierTable[nClassifierIndex],
-                              (PVOID) & Adapter->
+                              (PVOID) &Adapter->
                               astClassifierTable[nClassifierIndex],
                               sizeof(struct bcm_mibs_classifier_rule));
        }
@@ -37,8 +37,8 @@ INT ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, struct bcm_host_stats_m
        /* Copy the SF Table */
        for (nSfIndex = 0; nSfIndex < NO_OF_QUEUES; nSfIndex++) {
                if (Adapter->PackInfo[nSfIndex].bValid) {
-                       memcpy((PVOID) & pstHostMibs->astSFtable[nSfIndex],
-                              (PVOID) & Adapter->PackInfo[nSfIndex],
+                       memcpy((PVOID) &pstHostMibs->astSFtable[nSfIndex],
+                              (PVOID) &Adapter->PackInfo[nSfIndex],
                                sizeof(struct bcm_mibs_table));
                } else {
                        /* If index in not valid,