Commit 889d7063 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request

There is an assignment inside hostif_ps_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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22bef066
...@@ -1300,7 +1300,7 @@ void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv) ...@@ -1300,7 +1300,7 @@ void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv)
return; return;
init_request(priv, &pp->request); init_request(priv, &pp->request);
pp->channel = cpu_to_le16((uint16_t)(priv->reg.channel)); pp->channel = cpu_to_le16((u16)(priv->reg.channel));
send_request_to_device(priv, pp, hif_align_size(sizeof(*pp))); send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment