diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index 214c68269a69..d961095ab01f 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -463,7 +463,7 @@ static void ath9k_enable_rmw_buffer(void *hw_priv) | |||
463 | atomic_inc(&priv->wmi->m_rmw_cnt); | 463 | atomic_inc(&priv->wmi->m_rmw_cnt); |
464 | } | 464 | } |
465 | 465 | ||
466 | static u32 ath9k_reg_rmw_single(void *hw_priv, | 466 | static void ath9k_reg_rmw_single(void *hw_priv, |
467 | u32 reg_offset, u32 set, u32 clr) | 467 | u32 reg_offset, u32 set, u32 clr) |
468 | { | 468 | { |
469 | struct ath_hw *ah = hw_priv; | 469 | struct ath_hw *ah = hw_priv; |
@@ -471,7 +471,6 @@ static u32 ath9k_reg_rmw_single(void *hw_priv, | |||
471 | struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; | 471 | struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; |
472 | struct register_rmw buf, buf_ret; | 472 | struct register_rmw buf, buf_ret; |
473 | int ret; | 473 | int ret; |
474 | u32 val = 0; | ||
475 | 474 | ||
476 | buf.reg = cpu_to_be32(reg_offset); | 475 | buf.reg = cpu_to_be32(reg_offset); |
477 | buf.set = cpu_to_be32(set); | 476 | buf.set = cpu_to_be32(set); |
@@ -485,7 +484,6 @@ static u32 ath9k_reg_rmw_single(void *hw_priv, | |||
485 | ath_dbg(common, WMI, "REGISTER RMW FAILED:(0x%04x, %d)\n", | 484 | ath_dbg(common, WMI, "REGISTER RMW FAILED:(0x%04x, %d)\n", |
486 | reg_offset, ret); | 485 | reg_offset, ret); |
487 | } | 486 | } |
488 | return val; | ||
489 | } | 487 | } |
490 | 488 | ||
491 | static u32 ath9k_reg_rmw(void *hw_priv, u32 reg_offset, u32 set, u32 clr) | 489 | static u32 ath9k_reg_rmw(void *hw_priv, u32 reg_offset, u32 set, u32 clr) |