Commit 0f5dcab7 authored by Phillip Potter's avatar Phillip Potter Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: remove braces from two single line if blocks



Remove braces from both occurences of single line if blocks in
include/rtw_mlme.h, fixes two checkpatch warnings, thus clearing
this type of warning from this file.

Also swaps two if statement comparisons around, so the variable is on
the left in each one. This fixes two warnings also.

Signed-off-by: default avatarPhillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210209001043.165080-1-phil@philpotter.co.uk


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7eea86fb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -524,19 +524,17 @@ static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state)
{
	pmlmepriv->fw_state |= state;
	/* FOR HW integration */
	if (_FW_UNDER_SURVEY == state) {
	if (state == _FW_UNDER_SURVEY)
		pmlmepriv->bScanInProcess = true;
}
}

static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state)
{
	pmlmepriv->fw_state &= ~state;
	/* FOR HW integration */
	if (_FW_UNDER_SURVEY == state) {
	if (state == _FW_UNDER_SURVEY)
		pmlmepriv->bScanInProcess = false;
}
}

/*
 * No Limit on the calling context,