Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdf620d6 authored by Quytelda Kahja's avatar Quytelda Kahja Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: Combine if statements with equivalent body.



Two if statements that carry out the same operation can be combined with
a logical OR.

Signed-off-by: default avatarQuytelda Kahja <quytelda@tamalin.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 717209ec
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1734,12 +1734,8 @@ s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 reg_pwr_tbl_sel,

	/*  workaround for wrong index combination to obtain tx power limit, */
	/*  OFDM only exists in BW 20M */
	if (idx_rate_sctn == 1)
		idx_bandwidth = 0;

	/*  workaround for wrong index combination to obtain tx power limit, */
	/*  CCK table will only be given in BW 20M */
	if (idx_rate_sctn == 0)
	if (idx_rate_sctn == 0 || idx_rate_sctn == 1)
		idx_bandwidth = 0;

	/*  workaround for wrong indxe combination to obtain tx power limit, */