staging: ks7010: replace unsigned char type with u8
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 13 May 2018 18:35:38 +0000 (20:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:07:06 +0000 (14:07 +0200)
Variable 'byte' in ks7010_upload_firmware function is declared
as unsigned char and is only being used to read hardware
registers which are expected in sdio_read_byteb function as u8.
Change 'byte' variable type to u8 which is preferred.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index d236dfe..f56db07 100644 (file)
@@ -752,7 +752,7 @@ static int ks7010_upload_firmware(struct ks_sdio_card *card)
        struct ks_wlan_private *priv = card->priv;
        struct sdio_func *func = ks7010_to_func(priv);
        unsigned int n;
-       unsigned char byte = 0;
+       u8 byte = 0;
        int ret;
        const struct firmware *fw_entry = NULL;