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

Commit b0d80f19 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Kalle Valo
Browse files

mwifiex: key_material_v2 remove superfluous condition



We are using mac as source address in a memcpy.
In the lines below we can assume mac is not NULL.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2f69e670
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -706,15 +706,10 @@ mwifiex_cmd_802_11_key_material_v2(struct mwifiex_private *priv,
				    (priv->wep_key_curr_index & KEY_INDEX_MASK))
					key_info |= KEY_DEFAULT;
			} else {
				if (mac) {
				if (is_broadcast_ether_addr(mac))
					key_info |= KEY_MCAST;
				else
						key_info |= KEY_UNICAST |
							    KEY_DEFAULT;
				} else {
					key_info |= KEY_MCAST;
				}
					key_info |= KEY_UNICAST | KEY_DEFAULT;
			}
		}
		km->key_param_set.key_info = cpu_to_le16(key_info);