linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: brcm80211: return false if not a broadcom board
@ 2011-06-15 22:25 Greg Dietsche
  2011-06-16  1:36 ` Henry Ptasinski
  0 siblings, 1 reply; 8+ messages in thread
From: Greg Dietsche @ 2011-06-15 22:25 UTC (permalink / raw)
  To: gregkh
  Cc: brudley, henryp, dowan, rvossen, arend, linux-wireless, devel,
	linux-kernel, Greg Dietsche

This code looks wrong to me. I think it meant to return false
if the board's vendor id isn't Broadcom's.

Compile tested only.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 drivers/staging/brcm80211/brcmsmac/wlc_bmac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmsmac/wlc_bmac.c b/drivers/staging/brcm80211/brcmsmac/wlc_bmac.c
index 4534926..ee13238 100644
--- a/drivers/staging/brcm80211/brcmsmac/wlc_bmac.c
+++ b/drivers/staging/brcm80211/brcmsmac/wlc_bmac.c
@@ -1943,7 +1943,7 @@ static bool wlc_validboardtype(struct wlc_hw_info *wlc_hw)
 	}
 
 	if (wlc_hw->sih->boardvendor != PCI_VENDOR_ID_BROADCOM)
-		return goodboard;
+		goodboard = false; 
 
 	return goodboard;
 }
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-18 16:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 22:25 [PATCH] staging: brcm80211: return false if not a broadcom board Greg Dietsche
2011-06-16  1:36 ` Henry Ptasinski
2011-06-16  2:49   ` Greg Dietsche
2011-06-16 23:37     ` Henry Ptasinski
2011-06-16 23:45       ` Julian Calaby
2011-06-17 22:01         ` Henry Ptasinski
2011-06-18 15:52           ` Greg Dietsche
2011-06-16  5:14   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).