Commit 4bd0f7d0 authored by Wu Yunchuan's avatar Wu Yunchuan Committed by Kalle Valo

wifi: ath5k: remove unnecessary (void*) conversions

No need cast (void *) to (struct ath5k_hw *).
Signed-off-by: default avatarWu Yunchuan <yunchuan@nfschina.com>
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230919044959.523576-1-yunchuan@nfschina.com
parent 9705103f
...@@ -230,13 +230,13 @@ ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val) ...@@ -230,13 +230,13 @@ ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val)
} }
static unsigned int ath5k_ioread32(void *hw_priv, u32 reg_offset) static unsigned int ath5k_ioread32(void *hw_priv, u32 reg_offset)
{ {
struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; struct ath5k_hw *ah = hw_priv;
return ath5k_hw_reg_read(ah, reg_offset); return ath5k_hw_reg_read(ah, reg_offset);
} }
static void ath5k_iowrite32(void *hw_priv, u32 val, u32 reg_offset) static void ath5k_iowrite32(void *hw_priv, u32 val, u32 reg_offset)
{ {
struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; struct ath5k_hw *ah = hw_priv;
ath5k_hw_reg_write(ah, val, reg_offset); ath5k_hw_reg_write(ah, val, reg_offset);
} }
......
...@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table); ...@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table);
/* return bus cachesize in 4B word units */ /* return bus cachesize in 4B word units */
static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz) static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz)
{ {
struct ath5k_hw *ah = (struct ath5k_hw *) common->priv; struct ath5k_hw *ah = common->priv;
u8 u8tmp; u8 u8tmp;
pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp); pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp);
...@@ -76,7 +76,7 @@ static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz) ...@@ -76,7 +76,7 @@ static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz)
static bool static bool
ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data) ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data)
{ {
struct ath5k_hw *ah = (struct ath5k_hw *) common->ah; struct ath5k_hw *ah = common->ah;
u32 status, timeout; u32 status, timeout;
/* /*
......
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