From: navin patidar Date: Sun, 22 Jun 2014 08:51:45 +0000 (+0530) Subject: staging: rtl8188eu: Remove function flush_signals_thread() X-Git-Tag: v5.15~17495^2~1394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7062775b2c360a50b4c878efb49c6041f56463fc;p=platform%2Fkernel%2Flinux-starfive.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 e65d8ef..556d17d 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 919c4c2..d879948 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 e7bbc28..2d07dea 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;