diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-10-02 08:26:04 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 18:39:22 (GMT) |
commit | cbf2f545d7adf9841d4b6ee7fbfa9b1706e369d4 (patch) | |
tree | 05a0f054270de862a43d5807a26aa278ed0cc228 /include/memory | |
parent | 3e5e624bfda39417cc76e716a350a318049dbd39 (diff) | |
download | linux-fsl-qoriq-cbf2f545d7adf9841d4b6ee7fbfa9b1706e369d4.tar.xz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions