From: Dan Carpenter Date: Tue, 2 Oct 2012 08:26:04 +0000 (+0300) Subject: staging: rtl8192u: fix a macro expansion bug X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1168 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf2f545d7adf9841d4b6ee7fbfa9b1706e369d4;p=pandora-kernel.git staging: rtl8192u: fix a macro expansion bug Clang detected this macro expansion bug: drivers/staging/rtl8192u/r8192U_core.c:2384:76: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] The line from the .c file looks like this: u1bAIFS = qos_parameters->aifs[i] * ((mode&(IEEE_G|IEEE_N_24G)) ?9:20) + aSifsTime; We need to put parenthesis around the entire macro to fix the bug. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed