net: bcm4358: fix not to check same value in macro
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 17 Jan 2017 04:22:22 +0000 (13:22 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 14 Feb 2017 04:26:24 +0000 (13:26 +0900)
commit24d570cb8989d27d87e1756fa25a48197f3487bd
tree5a9807ff40fbd5222ba7c9c8a46c429d41c7dbf5
parent52d6734b317b65d55ebcd352ed360d8a58a8b018
net: bcm4358: fix not to check same value in macro

When BCMBUSTYPE is not defined, then BUSTYPE(bustype) is just
bustype. So comparing bustype and BUSTYPE(bustype) is not necessary.

This patch removes following build warning with gcc 6.
   drivers/net/wireless/bcmdhd4358/siutils.c: In function 'si_doattach':
   drivers/net/wireless/bcmdhd4358/siutils.c:512:14: warning: self-comparison always evaluates to false [-Wtautological-compare]
     if (bustype != BUSTYPE(bustype)) {
                 ^~

Change-Id: I1cac3dd31bcb86983469830013a1093ed9ceaa89
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/net/wireless/bcmdhd/siutils.c