Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/3] staging: rtl8188eu: Revert part of "staging: rtl8188eu: fix comments with lines over 80 characters"
@ 2017-11-02  9:30 Hans de Goede
  2017-11-02  9:30 ` [PATCH 2/3] staging: rtl8188eu: Fix bug introduced by convert timers to use timer_setup() Hans de Goede
  2017-11-02  9:30 ` [PATCH 3/3] staging: r8188eu: Revert 4 commits breaking ARP Hans de Goede
  0 siblings, 2 replies; 3+ messages in thread
From: Hans de Goede @ 2017-11-02  9:30 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Hans de Goede, Larry Finger, linux-wireless, devel,
	Juliana Rodrigues

Commit 74e1e498e84e ("staging: rtl8188eu: fix comments with lines over 80
characters") not only changed comments but also changed an if check:

-if (pmlmepriv->cur_network.join_res != true) {
+if (!(pmlmepriv->cur_network.join_res)) {

This is not equivalent as join_res is an int and can have values such
as -2 and -3.

Note for the next time, please only make one type of changes in a single
clean-up commit.

Fixes: 74e1e498e84e ("staging: rtl8188eu: fix comments with lines over 80 ...")
Cc: Juliana Rodrigues <juliana.orod@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/staging/rtl8188eu/core/rtw_ap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c
index 32a483769975..fa611455109a 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ap.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ap.c
@@ -754,7 +754,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
 	}
 
 	/* setting only at  first time */
-	if (!(pmlmepriv->cur_network.join_res)) {
+	if (pmlmepriv->cur_network.join_res != true) {
 		/* WEP Key will be set before this function, do not
 		 * clear CAM.
 		 */
-- 
2.14.2

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

end of thread, other threads:[~2017-11-02  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-02  9:30 [PATCH 1/3] staging: rtl8188eu: Revert part of "staging: rtl8188eu: fix comments with lines over 80 characters" Hans de Goede
2017-11-02  9:30 ` [PATCH 2/3] staging: rtl8188eu: Fix bug introduced by convert timers to use timer_setup() Hans de Goede
2017-11-02  9:30 ` [PATCH 3/3] staging: r8188eu: Revert 4 commits breaking ARP Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox