staging: rtl8723au: Don't wrap kill_pid() in an unnecessary macro
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:21:01 +0000 (23:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:15 +0000 (08:29 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_dm.c
drivers/staging/rtl8723au/include/osdep_service.h
drivers/staging/rtl8723au/os_dep/mlme_linux.c
drivers/staging/rtl8723au/os_dep/usb_intf.c

index b3907ca2e96bc8087281ea4f05094e5b6cccbcba..71ee47abcace0b063b5b5be68aad71b2f379eb14 100644 (file)
@@ -76,7 +76,7 @@ static void dm_CheckPbcGPIO(struct rtw_adapter *padapter)
                        return;
                }
 
-               rtw_signal_process(padapter->pid[0], SIGUSR1);
+               kill_pid(find_vpid(padapter->pid[0]), SIGUSR1, 1);
        }
 }
 
index 039bc7285ed010c62e93c285cccec6ddd8df50e3..e03d19b84bcb6f6e60bdb105d00d39e3bd7e6dfa 100644 (file)
@@ -174,8 +174,6 @@ void rtw_unlock_suspend(void);
 #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_modular6423a(u64 x, u64 y);
 u64 rtw_division6423a(u64 x, u64 y);
 
index 37ecdb4eba2dd571ddf9b2a3fcb7e555856602c3..d07e2203950cc839314f5c9294dacfd00832fad5 100644 (file)
@@ -27,7 +27,7 @@ void rtw_os_indicate_connect23a(struct rtw_adapter *adapter)
        netif_carrier_on(adapter->pnetdev);
 
        if (adapter->pid[2] != 0)
-               rtw_signal_process(adapter->pid[2], SIGALRM);
+               kill_pid(find_vpid(adapter->pid[2]), SIGALRM, 1);
 }
 
 static struct rt_pmkid_list backupPMKIDList[NUM_PMKID_CACHE];
index 778508d3a047426a8d73a0fad03f0540350d4314..e6fbe6a62a6b8c81622992a6e8a2ea1947424c0a 100644 (file)
@@ -566,7 +566,7 @@ int rtw_resume_process23a(struct rtw_adapter *padapter)
 
        if (padapter->pid[1] != 0) {
                DBG_8723A("pid[1]:%d\n", padapter->pid[1]);
-               rtw_signal_process(padapter->pid[1], SIGUSR2);
+               kill_pid(find_vpid(padapter->pid[1]), SIGUSR2, 1);
        }
 
        rtw23a_roaming(padapter, NULL);