From fe6dc85eaf8bb180ad3510a57bd69f3b8f9c2dbb Mon Sep 17 00:00:00 2001 From: Mahati Chamarthy Date: Sat, 20 Sep 2014 03:42:01 +0530 Subject: [PATCH] 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 --- drivers/staging/rtl8192ee/efuse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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, -- 2.30.2