3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

eap-pwd: Remove unneeded cast

This commit is contained in:
Denis Kenzior 2019-01-31 12:41:58 -06:00
parent bb28351c93
commit c926b3fe80

View File

@ -374,8 +374,7 @@ static void eap_pwd_handle_commit(struct eap_state *eap,
if (!pwd->element_s)
goto invalid_point;
pwd->scalar_s = l_ecc_scalar_new(pwd->curve,
(uint8_t *)pkt + (nbytes * 2), nbytes);
pwd->scalar_s = l_ecc_scalar_new(pwd->curve, pkt + nbytes * 2, nbytes);
pwd->p_rand = l_ecc_scalar_new_random(pwd->curve);
p_mask = l_ecc_scalar_new_random(pwd->curve);