Commit 403e6946 authored by Bryan Brattlof's avatar Bryan Brattlof Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: remove if (true) statement



'if (true) { ... }' will always evaluate to true. Remove it and
save a few tabs for somewhere else.

Signed-off-by: default avatarBryan Brattlof <hello@bryanbrattlof.com>
Link: https://lore.kernel.org/r/20210518144335.1677320-1-hello@bryanbrattlof.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 946c9453
Loading
Loading
Loading
Loading
+78 −81
Original line number Diff line number Diff line
@@ -59,8 +59,6 @@ static void update_BCNTIM(struct adapter *padapter)
	unsigned char *pie = pnetwork_mlmeext->IEs;

	/* update TIM IE */
	/* if (pstapriv->tim_bitmap) */
	if (true) {
	u8 *p, *dst_ie, *premainder_ie = NULL, *pbackup_remainder_ie = NULL;
	__le16 tim_bitmap_le;
	uint offset, tmp_len, tim_ielen, tim_ie_offset, remainder_ielen;
@@ -165,7 +163,6 @@ static void update_BCNTIM(struct adapter *padapter)
	offset =  (uint)(dst_ie - pie);
	pnetwork_mlmeext->IELength = offset + remainder_ielen;
}
}

u8 chk_sta_is_alive(struct sta_info *psta);
u8 chk_sta_is_alive(struct sta_info *psta)