Selaa lähdekoodia

Staging: rtl8192ee: Fix else is not useful warning

This fixes the following checkpatch.pl warnings:
WARNING: else is not generally useful after a break or return

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Mahati Chamarthy 11 vuotta sitten
vanhempi
commit
fe6dc85eaf
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2 4
      drivers/staging/rtl8192ee/efuse.c

+ 2 - 4
drivers/staging/rtl8192ee/efuse.c

@@ -136,9 +136,8 @@ u8 stg_efuse_read_1byte(struct ieee80211_hw *hw, u16 address)
 		}
 		data = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL]);
 		return data;
-	} else {
-		return 0xFF;
 	}
+	return 0xFF;
 }
 EXPORT_SYMBOL(stg_efuse_read_1byte);
 
@@ -751,8 +750,7 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
 	    (data[4] == 0xff) && (data[5] == 0xff) &&
 	    (data[6] == 0xff) && (data[7] == 0xff))
 		return false;
-	else
-		return true;
+	return true;
 }
 
 static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr,