Skip to contentSkip to conversation

staging: rtl8723bs: Switch constant place in test

PATCH New Javier F. Arias 1 participant 1 message Oct 7, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: Switch constant place in test

Switch constant place as it should be on the right side of the test. Issue found by checkpatch.

---
 drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_xmit.c +1 -1
index bda25e13e935..6f7a63f53d4f 100644
@@ -2981,7 +2981,7 @@ int rtw_xmit_thread(void *context)
 	do {
 		err = rtw_hal_xmit_thread_handler(padapter);
 		flush_signals_thread();
-	} while (_SUCCESS == err);
+	} while (err == _SUCCESS);
 
 	complete(&padapter->xmitpriv.terminate_xmitthread_comp);
 
Signature · 1 line
2.20.1