From: navin patidar Date: Sun, 22 Jun 2014 08:51:45 +0000 (+0530) Subject: staging: rtl8188eu: Remove function flush_signals_thread() X-Git-Tag: firefly_0821_release~176^2~3491^2~1394 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7062775b2c360a50b4c878efb49c6041f56463fc;p=firefly-linux-kernel-4.4.55.git staging: rtl8188eu: Remove function flush_signals_thread() Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index e65d8ef14453..556d17d29797 100644 --- a/drivers/staging/rtl8188eu/core/rtw_cmd.c +++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c @@ -359,7 +359,8 @@ post_process: rtw_free_cmd_obj(pcmd); } - flush_signals_thread(); + if (signal_pending(current)) + flush_signals(current); goto _next; } diff --git a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c index 919c4c212172..d879948e0a60 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mp.c +++ b/drivers/staging/rtl8188eu/core/rtw_mp.c @@ -629,7 +629,8 @@ static int mp_xmit_packet_thread(void *context) (pmptx->count == pmptx->sended)) goto exit; - flush_signals_thread(); + if (signal_pending(current)) + flush_signals(current); } exit: diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h b/drivers/staging/rtl8188eu/include/osdep_service.h index e7bbc28ba00a..2d07deade14a 100644 --- a/drivers/staging/rtl8188eu/include/osdep_service.h +++ b/drivers/staging/rtl8188eu/include/osdep_service.h @@ -164,12 +164,6 @@ u32 rtw_systime_to_ms(u32 systime); u32 rtw_ms_to_systime(u32 ms); s32 rtw_get_passing_time_ms(u32 start); -static inline void flush_signals_thread(void) -{ - if (signal_pending(current)) - flush_signals(current); -} - struct rtw_netdev_priv_indicator { void *priv; u32 sizeof_priv;