diff options
author | 2018-05-13 20:35:53 +0200 | |
---|---|---|
committer | 2018-05-14 14:07:07 +0200 | |
commit | bcbd1f18417ff138e39f7169304fbdb64b64a30a (patch) | |
tree | 73ef3c4cae5146c7964908fc91ffd698ba77a194 /drivers/staging/ks7010 | |
parent | staging: ks7010: replace cast type in assignments in hostif_infrastructure_se... (diff) | |
download | linux-bcbd1f18417ff138e39f7169304fbdb64b64a30a.tar.gz linux-bcbd1f18417ff138e39f7169304fbdb64b64a30a.tar.bz2 linux-bcbd1f18417ff138e39f7169304fbdb64b64a30a.zip |
staging: ks7010: replace cast type in assignment in hostif_adhoc_set_request
There is an assignment inside hostif_adhoc_set_request 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index bf410e33c55a..b946f516b4ab 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1354,7 +1354,7 @@ void hostif_adhoc_set_request(struct ks_wlan_private *priv) return; init_request(priv, &pp->request); - pp->channel = cpu_to_le16((uint16_t)(priv->reg.channel)); + pp->channel = cpu_to_le16((u16)(priv->reg.channel)); pp->ssid.size = priv->reg.ssid.size; memcpy(&pp->ssid.body[0], &priv->reg.ssid.body[0], priv->reg.ssid.size); |