Staging: rtl8192ee: Fix else is not useful warning
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Fri, 19 Sep 2014 22:12:01 +0000 (03:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:15:15 +0000 (17:15 -0700)
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>
drivers/staging/rtl8192ee/efuse.c

index b97bc9c9d537f3b5d193c4f5eb6f27f8549ec511..817fc407937c75f7852b10ba718c5e1fdd22e592 100644 (file)
@@ -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,