Staging: bcm: mocro expansion bug
authorDan Carpenter <error27@gmail.com>
Fri, 8 Oct 2010 12:56:04 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 14:29:55 +0000 (07:29 -0700)
commit055a1eda5fe143fdb8137cfd6eee39c9b58fe72d
treebdc4021878e019cb5b6da226d6c377540e2f58e3
parent785698e38dcd01cd15dacbf0cf1309a04b1e3208
Staging: bcm: mocro expansion bug

The WIMAX_MAX_MTU macro is used in drivers/staging/bcm/CmHost.c like
this:

    if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize < WIMAX_MAX_MTU * 8)

The multiplication by eight has precedence over the addition so the
macro needs parenthesis to work.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Macros.h