staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 13 May 2018 18:35:58 +0000 (20:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:07:07 +0000 (14:07 +0200)
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>
drivers/staging/ks7010/ks_hostif.c

index 4e88767..66ab45a 100644 (file)
@@ -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);