staging: ks7010: Remove unnecessary cast
authorPontus Fuchs <pontus.fuchs@gmail.com>
Thu, 6 Oct 2016 20:50:19 +0000 (22:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:57 +0000 (10:24 +0200)
sdio functions takes unsigned int as address. No need to cast.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index 33f3351..1f97161 100644 (file)
@@ -76,10 +76,9 @@ static int ks7010_sdio_write(struct ks_wlan_private *priv, unsigned int address,
        card = priv->ks_wlan_hw.sdio_card;
 
        if (length == 1)        /* CMD52 */
-               sdio_writeb(card->func, *buffer, (unsigned int)address, &rc);
+               sdio_writeb(card->func, *buffer, address, &rc);
        else    /* CMD53 */
-               rc = sdio_memcpy_toio(card->func, (unsigned int)address, buffer,
-                                     length);
+               rc = sdio_memcpy_toio(card->func, address, buffer, length);
 
        if (rc != 0)
                DPRINTK(1, "sdio error=%d size=%d\n", rc, length);