Commit 0af45479 authored by Pontus Fuchs's avatar Pontus Fuchs Committed by Greg Kroah-Hartman

staging: ks7010: Remove unnecessary cast

sdio functions takes unsigned int as address. No need to cast.
Signed-off-by: default avatarPontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b750fac
...@@ -76,10 +76,9 @@ static int ks7010_sdio_write(struct ks_wlan_private *priv, unsigned int address, ...@@ -76,10 +76,9 @@ static int ks7010_sdio_write(struct ks_wlan_private *priv, unsigned int address,
card = priv->ks_wlan_hw.sdio_card; card = priv->ks_wlan_hw.sdio_card;
if (length == 1) /* CMD52 */ if (length == 1) /* CMD52 */
sdio_writeb(card->func, *buffer, (unsigned int)address, &rc); sdio_writeb(card->func, *buffer, address, &rc);
else /* CMD53 */ else /* CMD53 */
rc = sdio_memcpy_toio(card->func, (unsigned int)address, buffer, rc = sdio_memcpy_toio(card->func, address, buffer, length);
length);
if (rc != 0) if (rc != 0)
DPRINTK(1, "sdio error=%d size=%d\n", rc, length); DPRINTK(1, "sdio error=%d size=%d\n", rc, length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment