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

Commit b8631c00 authored by Sunil Shahu's avatar Sunil Shahu Committed by Johannes Berg
Browse files

mac80211: mesh_plink: remove redundant sta_info check



Remove unnecessory "if" statement and club it with previos "if" block.

Signed-off-by: default avatarSunil Shahu <shshahu@gmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d4634e8d
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -976,6 +976,10 @@ mesh_plink_get_event(struct ieee80211_sub_if_data *sdata,
			mpl_dbg(sdata, "Mesh plink error: no more free plinks\n");
			goto out;
		}

		/* new matching peer */
		event = OPN_ACPT;
		goto out;
	} else {
		if (!test_sta_flag(sta, WLAN_STA_AUTH)) {
			mpl_dbg(sdata, "Mesh plink: Action frame from non-authed peer\n");
@@ -985,12 +989,6 @@ mesh_plink_get_event(struct ieee80211_sub_if_data *sdata,
			goto out;
	}

	/* new matching peer */
	if (!sta) {
		event = OPN_ACPT;
		goto out;
	}

	switch (ftype) {
	case WLAN_SP_MESH_PEERING_OPEN:
		if (!matches_local)