From: Sergio Paracuellos Date: Sun, 13 May 2018 18:35:51 +0000 (+0200) Subject: staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request X-Git-Tag: v5.15~8661^2~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=889d7063305f00cc31d97744e2dac0d2162354e8;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 2681e2e..6d4702e 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))); }