diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-13 20:35:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 14:07:07 +0200 |
commit | 889d7063305f00cc31d97744e2dac0d2162354e8 (patch) | |
tree | eab89f9022f94cdf824e121d952b52b7f21f9c28 /drivers/staging/ks7010 | |
parent | 22bef066492536570c9a1156110df59ef42fbec9 (diff) | |
download | linux-stable-889d7063305f00cc31d97744e2dac0d2162354e8.tar.gz linux-stable-889d7063305f00cc31d97744e2dac0d2162354e8.tar.bz2 linux-stable-889d7063305f00cc31d97744e2dac0d2162354e8.zip |
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: 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 2681e2e57204..6d4702ef1d93 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1300,7 +1300,7 @@ void hostif_ps_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)); send_request_to_device(priv, pp, hif_align_size(sizeof(*pp))); } |