mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
staging: rtl8192e: Remove checks of pointer to stop_send.. and rtllib_..
Function pointers of stop_send_beacons and rtllib_ips_leave_wq is set while executing the probe function. Therefore a NULL pointer check is not required. Remove checks as it is dead code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/f12e9167499344059f77991d2058c050bbe744d2.1677345331.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f7cc87391a
commit
997f7f0c2c
@ -659,8 +659,7 @@ static void rtllib_beacons_stop(struct rtllib_device *ieee)
|
||||
|
||||
void rtllib_stop_send_beacons(struct rtllib_device *ieee)
|
||||
{
|
||||
if (ieee->stop_send_beacons)
|
||||
ieee->stop_send_beacons(ieee->dev);
|
||||
ieee->stop_send_beacons(ieee->dev);
|
||||
if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
|
||||
rtllib_beacons_stop(ieee);
|
||||
}
|
||||
@ -728,8 +727,7 @@ EXPORT_SYMBOL(rtllib_act_scanning);
|
||||
/* called with ieee->lock held */
|
||||
static void rtllib_start_scan(struct rtllib_device *ieee)
|
||||
{
|
||||
if (ieee->rtllib_ips_leave_wq != NULL)
|
||||
ieee->rtllib_ips_leave_wq(ieee->dev);
|
||||
ieee->rtllib_ips_leave_wq(ieee->dev);
|
||||
|
||||
if (IS_DOT11D_ENABLE(ieee)) {
|
||||
if (IS_COUNTRY_IE_VALID(ieee))
|
||||
@ -1584,8 +1582,7 @@ static void rtllib_associate_procedure_wq(void *data)
|
||||
rtllib_stop_scan(ieee);
|
||||
HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
|
||||
if (ieee->rf_power_state == rf_off) {
|
||||
if (ieee->rtllib_ips_leave_wq != NULL)
|
||||
ieee->rtllib_ips_leave_wq(ieee->dev);
|
||||
ieee->rtllib_ips_leave_wq(ieee->dev);
|
||||
mutex_unlock(&ieee->wx_mutex);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user