Skip to content

Commit

Permalink
ath9k: remove redundant status variable
Browse files Browse the repository at this point in the history
Return value directly instead of taking this in another redundant
variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220112080751.667316-1-chi.minghao@zte.com.cn
  • Loading branch information
Minghao Chi authored and Kalle Valo committed Jan 17, 2022
1 parent dc7ff75 commit 76d7b99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/ath/ath9k/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,6 @@ void ath9k_hw_get_gain_boundaries_pdadcs(struct ath_hw *ah,

int ath9k_hw_eeprom_init(struct ath_hw *ah)
{
int status;

if (AR_SREV_9300_20_OR_LATER(ah))
ah->eep_ops = &eep_ar9300_ops;
else if (AR_SREV_9287(ah)) {
Expand All @@ -685,7 +683,5 @@ int ath9k_hw_eeprom_init(struct ath_hw *ah)
if (!ah->eep_ops->fill_eeprom(ah))
return -EIO;

status = ah->eep_ops->check_eeprom(ah);

return status;
return ah->eep_ops->check_eeprom(ah);
}

0 comments on commit 76d7b99

Please sign in to comment.