staging: brcm80211: cleanup to get rid of 'over 80 character' line
authorArend van Spriel <arend@broadcom.com>
Mon, 8 Aug 2011 13:58:57 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:09 +0000 (13:00 -0700)
One checkpatch warning was remaining in the brcmsmac driver. The
code has been restructured to get rid of this last checkpatch
warning.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/main.c

index f5f914fccf8997b45a8afa6f681fce96795a03f9..2a139aa4005a054190789ee99318a33f7b17bc32 100644 (file)
@@ -6253,14 +6253,13 @@ _brcms_c_ioctl(struct brcms_c_info *wlc, int cmd, void *arg, int len,
 
                        /* merge rateset coming in with the current mcsset */
                        if (N_ENAB(wlc->pub)) {
+                               struct brcms_bss_info *mcsset_bss;
                                if (bsscfg->associated)
-                                       memcpy(rs.mcs,
-                                              &current_bss->rateset.mcs[0],
-                                              MCSSET_LEN);
+                                       mcsset_bss = current_bss;
                                else
-                                       memcpy(rs.mcs,
-                                              &wlc->default_bss->rateset.mcs[0],
-                                              MCSSET_LEN);
+                                       mcsset_bss = wlc->default_bss;
+                               memcpy(rs.mcs, &mcsset_bss->rateset.mcs[0],
+                                      MCSSET_LEN);
                        }
 
                        bcmerror = brcms_c_set_rateset(wlc, &rs);