diff mbox

ath9k: Remove empty test condition

Message ID 1462203851-20431-1-git-send-email-eduardo.abinader@riverbed.com (mailing list archive)
State Accepted
Commit dec8bbc1171354b4f49792f080ee4b1834fd5ce6
Delegated to: Kalle Valo
Headers show

Commit Message

Eduardo Abinader May 2, 2016, 3:44 p.m. UTC
Just some code cleanup to remove an empty if clause.

Signed-off-by: Eduardo Abinader <eduardo.abinader@riverbed.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Kalle Valo May 28, 2016, 8:17 a.m. UTC | #1
Eduardo Abinader <eabinader@ocedo.com> wrote:
> Just some code cleanup to remove an empty if clause.
> 
> Signed-off-by: Eduardo Abinader <eduardo.abinader@riverbed.com>

Thanks, 1 patch applied to ath.git:

ceda5153d8cd ath9k: Remove empty test condition
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index f680982..eb206c1 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@ -3202,8 +3202,7 @@  static int ar9300_compress_decision(struct ath_hw *ah,
 			it, length);
 		break;
 	case _CompressBlock:
-		if (reference == 0) {
-		} else {
+		if (reference != 0) {
 			eep = ar9003_eeprom_struct_find_by_id(reference);
 			if (eep == NULL) {
 				ath_dbg(common, EEPROM,