Skip to content

Commit fe413a0

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh
Remove call_usermodehelper starting /etc/acpi/events/RadioPower.sh that is not available. This script is not part of the kernel and it is not officially available on the www. The result is that this lines are just dead code. Signed-off-by: Philipp Hortmann <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/20230301215441.GA14049@matrix-ESPRIMO-P710 Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a98fc23 commit fe413a0

File tree

1 file changed

+0
-12
lines changed
  • drivers/staging/rtl8192e/rtl8192e

1 file changed

+0
-12
lines changed

drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,10 +1637,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
16371637
u8 tmp1byte;
16381638
enum rt_rf_power_state rf_power_state_to_set;
16391639
bool bActuallySet = false;
1640-
char *argv[3];
1641-
static const char RadioPowerPath[] = "/etc/acpi/events/RadioPower.sh";
1642-
static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin",
1643-
NULL};
16441640

16451641
bActuallySet = false;
16461642

@@ -1670,14 +1666,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
16701666
mdelay(1000);
16711667
priv->hw_rf_off_action = 1;
16721668
rtl92e_set_rf_state(dev, rf_power_state_to_set, RF_CHANGE_BY_HW);
1673-
if (priv->hw_radio_off)
1674-
argv[1] = "RFOFF";
1675-
else
1676-
argv[1] = "RFON";
1677-
1678-
argv[0] = (char *)RadioPowerPath;
1679-
argv[2] = NULL;
1680-
call_usermodehelper(RadioPowerPath, argv, envp, UMH_WAIT_PROC);
16811669
}
16821670
}
16831671

0 commit comments

Comments
 (0)