Staging: rtlwifi: Remove Unneeded funition halbtc_get_wifi_rssi()
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Tue, 23 Oct 2018 10:57:26 +0000 (16:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:32 +0000 (14:16 +0100)
commit2c66f2a9efd9cdba235e9d41de544e23ccdb8700
tree84a0065a641ea95181a6315f8ee893726ac83346
parentcd27f56fce4fedc975663ecebb8166444a80b75c
Staging: rtlwifi: Remove Unneeded funition halbtc_get_wifi_rssi()

In the function halbtc_get_wifi_rssi:

1.if and else are functionally identical as they assign same value to
  variable 'undec_sm_pwdb'.
2.Variable 'undec_sm_pwdb' not required to just return a single value.
3.Function not needed to just return a value and so removed the function
  and assigned value rtlpriv->dm.undec_sm_pwdb where the function
  halbtc_get_wifi_rssi() is called.

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c