ath9k: Remove unnecessary casting to u8 in pci_read_config_byte() call
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Mon, 7 Sep 2009 12:16:50 +0000 (17:46 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Sep 2009 15:18:59 +0000 (11:18 -0400)
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/pci.c

index 8bb286df71b18a851cb3448ecdb49b298aa9839b..8b288141d4c145c836b35dbd893f5c42a6a9e16a 100644 (file)
@@ -35,8 +35,7 @@ static void ath_pci_read_cachesize(struct ath_softc *sc, int *csz)
 {
        u8 u8tmp;
 
-       pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE,
-                            (u8 *)&u8tmp);
+       pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp);
        *csz = (int)u8tmp;
 
        /*