staging: rtl8188eu: Kill dead calls to kill_pid()
authorJakub Sitnicki <jsitnicki@gmail.com>
Sun, 31 May 2015 13:04:14 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 21:25:51 +0000 (06:25 +0900)
There is no interface to register PIDs of processes the driver should
send a signal to.  Remove it.

Signed-off-by: Jakub Sitnicki <jsitnicki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/include/rtw_ioctl.h
drivers/staging/rtl8188eu/os_dep/mlme_linux.c
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index c81317906adcae064672db0c8e9a472a87645340..bcc74dcd82077c95423943b43b4425d9a315c7fc 100644 (file)
@@ -175,7 +175,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
 };
 
 struct adapter {
-       int     pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */
        u16     chip_type;
 
        struct dvobj_priv *dvobj;
index 515e949629e27886376fdb3ee9c6eb21bd86e3c4..00472e0c00a0573da8a529185884c8686cba51e5 100644 (file)
@@ -157,8 +157,6 @@ void rtw_free_netdev(struct net_device *netdev);
 #define FUNC_ADPT_FMT "%s(%s)"
 #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);
 
 /* Macros for handling unaligned memory accesses */
index f3aa924f2029134054ff4c19675baa569090c3ad..ee2cb54a755235e0073a5634e4600b6ee74345fb 100644 (file)
@@ -117,6 +117,4 @@ int drv_set_info(struct  net_device *MiniportAdapterContext,
                 u32 informationbufferlength, u32 *bytesread,
                 u32 *bytesneeded);
 
-extern int ui_pid[3];
-
 #endif /*  #ifndef __INC_CEINFO_ */
index 64c99f2e9077cd7265c11e31864607a190403047..218adaa574b58f2f2b8101bb7728f3d34af19d4b 100644 (file)
@@ -41,8 +41,6 @@ void rtw_os_indicate_connect(struct adapter *adapter)
 {
        rtw_indicate_wx_assoc_event(adapter);
        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)
index ef3c73e38172589147749a67ba3ca4c8e7fe799e..d0d4335b444c3eea93883c944cd361ca9a12a3f9 100644 (file)
@@ -32,8 +32,6 @@
 #include <usb_hal.h>
 #include <rtw_ioctl.h>
 
-int ui_pid[3] = {0, 0, 0};
-
 #define USB_VENDER_ID_REALTEK          0x0bda
 
 /* DID_USB_v916_20130116 */
@@ -330,11 +328,6 @@ static int rtw_resume_process(struct adapter *padapter)
 
        _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);
 
        ret = 0;
@@ -511,11 +504,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
                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"));
 
        status = _SUCCESS;