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

Commit 6a162200 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Kalle Valo
Browse files

mwifiex: simplify length computation for some memset



This patch should be a no-op. It just simplifies code by using the name of
a variable instead of its type when calling 'sizeof'.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ba852018
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -574,7 +574,7 @@ int mwifiex_enable_hs(struct mwifiex_adapter *adapter)


	adapter->hs_activate_wait_q_woken = false;
	adapter->hs_activate_wait_q_woken = false;


	memset(&hscfg, 0, sizeof(struct mwifiex_ds_hs_cfg));
	memset(&hscfg, 0, sizeof(hscfg));
	hscfg.is_invoke_hostcmd = true;
	hscfg.is_invoke_hostcmd = true;


	adapter->hs_enabling = true;
	adapter->hs_enabling = true;
@@ -1138,7 +1138,7 @@ int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp,
{
{
	struct mwifiex_ds_encrypt_key encrypt_key;
	struct mwifiex_ds_encrypt_key encrypt_key;


	memset(&encrypt_key, 0, sizeof(struct mwifiex_ds_encrypt_key));
	memset(&encrypt_key, 0, sizeof(encrypt_key));
	encrypt_key.key_len = key_len;
	encrypt_key.key_len = key_len;
	encrypt_key.key_index = key_index;
	encrypt_key.key_index = key_index;