summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-13 21:35:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-14 15:07:07 +0300
commitb7369066571ea8a17a424b15f1e4823ab346c3d0 (patch)
treeb45bee9c13b9947818887aea75ac48333f564877 /drivers/staging/ks7010
parent88c80162329c83ea3dea2017c9852776892cc6d6 (diff)
downloadlinux-b7369066571ea8a17a424b15f1e4823ab346c3d0.tar.xz
staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa
There is an assignment inside hostif_sme_set_pmksa function which is being used together with cpu_to_le16 using uint16_t as cast type. Replace it to use 'u16' instead. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/ks_hostif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 4e88767ac848..66ab45a20787 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1979,7 +1979,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
memcpy(pmkcache.list[i].pmkid, pmk->pmkid, IW_PMKID_LEN);
i++;
}
- pmkcache.size = cpu_to_le16((uint16_t)(priv->pmklist.size));
+ pmkcache.size = cpu_to_le16((u16)(priv->pmklist.size));
size = sizeof(priv->pmklist.size) +
((ETH_ALEN + IW_PMKID_LEN) * priv->pmklist.size);
hostif_mib_set_request_ostring(priv, LOCAL_PMK, &pmkcache, size);