From: Arend van Spriel Date: Wed, 1 Jun 2011 11:45:26 +0000 (+0200) Subject: staging: brcm80211: add braces to SI_INFO macro definition X-Git-Tag: MMI-PSA29.97-13-9~18845^2~568^2~133 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a607d3c2bc9839fbc3ee8a8c99beeb7b3a3844c2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: brcm80211: add braces to SI_INFO macro definition 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 Reviewed-by: Roland Vossen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/aiutils.h b/drivers/staging/brcm80211/brcmsmac/aiutils.h index 29415375b6b6..a0fec83111e8 100644 --- a/drivers/staging/brcm80211/brcmsmac/aiutils.h +++ b/drivers/staging/brcm80211/brcmsmac/aiutils.h @@ -271,7 +271,7 @@ #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)) && \