net: bcmdhd: 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)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Jan 2019 02:25:31 +0000 (11:25 +0900)
commit665b3589b1633e799ceac0adace0218caab811be
tree258f86a6ae02fff3c17b7fb3a20bad44b7f6c0fb
parent8cac6de3bff00ecdec0e0f4f0e8e6e53c0084dc8
net: bcmdhd: 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.
Fix not to check the same values.

This patch removes following build warning with gcc 6.
   drivers/net/wireless/bcmdhd/siutils.c: In function 'si_doattach':
   drivers/net/wireless/bcmdhd/siutils.c:564: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