staging: ks7010: use u16 as cast type in hostif_start_request
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 13 May 2018 18:35:49 +0000 (20:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:07:06 +0000 (14:07 +0200)
Use u16 as cast type in hostif_start_request function replacing
uint16_t which was being used.

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 adc6ccf..ee8dcb3 100644 (file)
@@ -1253,7 +1253,7 @@ void hostif_start_request(struct ks_wlan_private *priv, unsigned char mode)
        if (!pp)
                return;
 
-       pp->mode = cpu_to_le16((uint16_t)mode);
+       pp->mode = cpu_to_le16((u16)mode);
 
        send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));