Commit 5df5910b authored by Jakub Sitnicki's avatar Jakub Sitnicki Committed by Greg Kroah-Hartman

staging: rtl8188eu: Kill dead calls to kill_pid()

There is no interface to register PIDs of processes the driver should
send a signal to.  Remove it.
Signed-off-by: default avatarJakub Sitnicki <jsitnicki@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b5eeed8c
...@@ -175,7 +175,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj) ...@@ -175,7 +175,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
}; };
struct adapter { struct adapter {
int pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */
u16 chip_type; u16 chip_type;
struct dvobj_priv *dvobj; struct dvobj_priv *dvobj;
......
...@@ -157,8 +157,6 @@ void rtw_free_netdev(struct net_device *netdev); ...@@ -157,8 +157,6 @@ void rtw_free_netdev(struct net_device *netdev);
#define FUNC_ADPT_FMT "%s(%s)" #define FUNC_ADPT_FMT "%s(%s)"
#define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
#define rtw_signal_process(pid, sig) kill_pid(find_vpid((pid)), (sig), 1)
u64 rtw_modular64(u64 x, u64 y); u64 rtw_modular64(u64 x, u64 y);
/* Macros for handling unaligned memory accesses */ /* Macros for handling unaligned memory accesses */
......
...@@ -117,6 +117,4 @@ int drv_set_info(struct net_device *MiniportAdapterContext, ...@@ -117,6 +117,4 @@ int drv_set_info(struct net_device *MiniportAdapterContext,
u32 informationbufferlength, u32 *bytesread, u32 informationbufferlength, u32 *bytesread,
u32 *bytesneeded); u32 *bytesneeded);
extern int ui_pid[3];
#endif /* #ifndef __INC_CEINFO_ */ #endif /* #ifndef __INC_CEINFO_ */
...@@ -41,8 +41,6 @@ void rtw_os_indicate_connect(struct adapter *adapter) ...@@ -41,8 +41,6 @@ void rtw_os_indicate_connect(struct adapter *adapter)
{ {
rtw_indicate_wx_assoc_event(adapter); rtw_indicate_wx_assoc_event(adapter);
netif_carrier_on(adapter->pnetdev); netif_carrier_on(adapter->pnetdev);
if (adapter->pid[2] != 0)
rtw_signal_process(adapter->pid[2], SIGALRM);
} }
void rtw_os_indicate_scan_done(struct adapter *padapter, bool aborted) void rtw_os_indicate_scan_done(struct adapter *padapter, bool aborted)
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <usb_hal.h> #include <usb_hal.h>
#include <rtw_ioctl.h> #include <rtw_ioctl.h>
int ui_pid[3] = {0, 0, 0};
#define USB_VENDER_ID_REALTEK 0x0bda #define USB_VENDER_ID_REALTEK 0x0bda
/* DID_USB_v916_20130116 */ /* DID_USB_v916_20130116 */
...@@ -330,11 +328,6 @@ static int rtw_resume_process(struct adapter *padapter) ...@@ -330,11 +328,6 @@ static int rtw_resume_process(struct adapter *padapter)
_exit_pwrlock(&pwrpriv->lock); _exit_pwrlock(&pwrpriv->lock);
if (padapter->pid[1] != 0) {
DBG_88E("pid[1]:%d\n", padapter->pid[1]);
rtw_signal_process(padapter->pid[1], SIGUSR2);
}
rtw_roaming(padapter, NULL); rtw_roaming(padapter, NULL);
ret = 0; ret = 0;
...@@ -511,11 +504,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device ...@@ -511,11 +504,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
goto free_dvobj; goto free_dvobj;
} }
if (ui_pid[1] != 0) {
DBG_88E("ui_pid[1]:%d\n", ui_pid[1]);
rtw_signal_process(ui_pid[1], SIGUSR2);
}
RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("-871x_drv - drv_init, success!\n")); RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("-871x_drv - drv_init, success!\n"));
status = _SUCCESS; status = _SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment