From: Mahati Chamarthy Date: Fri, 19 Sep 2014 22:12:01 +0000 (+0530) Subject: Staging: rtl8192ee: Fix else is not useful warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe6dc85eaf8bb180ad3510a57bd69f3b8f9c2dbb;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192ee/efuse.c b/drivers/staging/rtl8192ee/efuse.c index b97bc9c9d537..817fc407937c 100644 --- a/drivers/staging/rtl8192ee/efuse.c +++ b/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,