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

Commit a318c9e0 authored by Elena Oat's avatar Elena Oat Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8188eu: Fix warning of braces {} are not necessary.



This patch fixes the warning of "braces {} are not necessary for single
statement blocks" in file rtw_mlme.c. I have removed the else statement
in one case, as it didn't have any value.

Signed-off-by: default avatarElena Oat <oat.elena@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 20338015
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -1544,15 +1544,13 @@ void rtw_dynamic_check_timer_handlder(struct adapter *adapter)
		/*  expire NAT2.5 entry */
		nat25_db_expire(adapter);

		if (adapter->pppoe_connection_in_progress > 0) {
		if (adapter->pppoe_connection_in_progress > 0)
			adapter->pppoe_connection_in_progress--;
		}

		/*  due to rtw_dynamic_check_timer_handlder() is called every 2 seconds */
		if (adapter->pppoe_connection_in_progress > 0) {
		if (adapter->pppoe_connection_in_progress > 0)
			adapter->pppoe_connection_in_progress--;
	}
	}

	rcu_read_unlock();
}
@@ -1849,11 +1847,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)

	} while (i < NUM_PMKID_CACHE);

	if (i == NUM_PMKID_CACHE) {
	if (i == NUM_PMKID_CACHE)
		i = -1;/*  Could not find. */
	} else {
		/*  There is one Pre-Authentication Key for the specific BSSID. */
	}

	return i;
}