ath9k: Remove empty test condition
authorEduardo Abinader <eabinader@ocedo.com>
Mon, 2 May 2016 15:44:11 +0000 (17:44 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 28 May 2016 08:15:32 +0000 (11:15 +0300)
Just some code cleanup to remove an empty if clause.

Signed-off-by: Eduardo Abinader <eduardo.abinader@riverbed.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

index dec1a31..d0224fc 100644 (file)
@@ -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,