staging: rtl8712: remove wrapper function thread_enter()
authorJames A Shackleford <shack@linux.com>
Wed, 9 Jul 2014 19:26:23 +0000 (15:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:17:50 +0000 (21:17 -0700)
The inline function thread_enter() accepts a single ignored parameter and is
just a wrapper for allow_signal(SIGTERM).  Removed.

Signed-off-by: James A Shackleford <shack@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/osdep_service.h
drivers/staging/rtl8712/rtl8712_cmd.c

index c80f00683b0f67c4b6660fb8c3676f941be48f8d..d7a357b8d2d1fa528793918c42aa452f33763ad9 100644 (file)
@@ -118,11 +118,6 @@ static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
        return del_timer(ptimer);
 }
 
-static inline void thread_enter(void *context)
-{
-       allow_signal(SIGTERM);
-}
-
 static inline void flush_signals_thread(void)
 {
        if (signal_pending(current))
index 61519774a25ea5e90caeab3b1bd3a51445326dc6..ab0c7eb248d30b02ad84cfe6946f74a80fd12468 100644 (file)
@@ -326,7 +326,7 @@ int r8712_cmd_thread(void *context)
        struct _adapter *padapter = (struct _adapter *)context;
        struct  cmd_priv        *pcmdpriv = &(padapter->cmdpriv);
 
-       thread_enter(padapter);
+       allow_signal(SIGTERM);
        while (1) {
                if ((_down_sema(&(pcmdpriv->cmd_queue_sema))) == _FAIL)
                        break;