staging: brcm80211: add braces to SI_INFO macro definition
authorArend van Spriel <arend@broadcom.com>
Wed, 1 Jun 2011 11:45:26 +0000 (13:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:36:59 +0000 (12:36 -0700)
The additional braces allow the casted parameter to be indirected
immediately. Here is an example to clarify:
x = SI_INFO(y);    => z = SI_INFO(y)->field_a;
z = x->field_a;

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/aiutils.h

index 2941537..a0fec83 100644 (file)
 #define        CST4330_CBUCK_POWER_OK          0x00004000
 #define        CST4330_BB_PLL_LOCKED           0x00008000
 
-#define        SI_INFO(sih)    (si_info_t *)sih
+#define        SI_INFO(sih)    ((si_info_t *)sih)
 
 #define        GOODCOREADDR(x, b) \
        (((x) >= (b)) && ((x) < ((b) + SI_MAXCORES * SI_CORE_SIZE)) && \