Re: [PATCH] staging: rtl8723bs: fix comparsion to true/false and brace issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/30/18 12:08, Andreas Schwab wrote:
On Jun 30 2018, Michael Straube <straube.linux@xxxxxxxxx> wrote:

@@ -115,11 +115,10 @@ s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter)
void rtw_btcoex_SetManualControl(struct adapter *padapter, u8 manual)
  {
-	if (true == manual) {
+	if (manual)
  		hal_btcoex_SetManualControl(padapter, true);
-	} else{
+	else
  		hal_btcoex_SetManualControl(padapter, false);
-	}

aka. hal_btcoex_SetManualControl(padapter, manual);

Andreas.


Ah, thanks!

Michael
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux