staging: rtl8723bs: Replace function thread_enter
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 3 Nov 2024 08:14:22 +0000 (09:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Nov 2024 23:55:49 +0000 (00:55 +0100)
Replace function thread_enter with its only called function allow_signal
to increase readability. Remove resulting unused local variable
thread_name as well.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/6946fae41575fffff1d4718cb3a96cd53f655416.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/core/rtw_xmit.c
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
drivers/staging/rtl8723bs/include/osdep_service.h

index 68b5d8ca900fbd4bc07b1cef612f24184af4d7f6..64ce33c6fba17210c6932ec225b838b33e6c9737 100644 (file)
@@ -382,7 +382,7 @@ int rtw_cmd_thread(void *context)
        struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
        struct drvextra_cmd_parm *extra_parm = NULL;
 
-       thread_enter("RTW_CMD_THREAD");
+       allow_signal(SIGTERM);
 
        pcmdbuf = pcmdpriv->cmd_buf;
 
index 3e88f14e3bf78a2a67c3e61b965cd37845398454..699cff7b0ac9559607f6fb07cc028f3063534225 100644 (file)
@@ -2489,7 +2489,7 @@ int rtw_xmit_thread(void *context)
        err = _SUCCESS;
        padapter = context;
 
-       thread_enter("RTW_XMIT_THREAD");
+       allow_signal(SIGTERM);
 
        do {
                err = rtw_hal_xmit_thread_handler(padapter);
index 78298e63edce6e51ddcfaf867e5d7593f1ddbc6b..5dc1c12fe03e5727c325b779b159d616871e1f02 100644 (file)
@@ -411,14 +411,12 @@ int rtl8723bs_xmit_thread(void *context)
        s32 ret;
        struct adapter *padapter;
        struct xmit_priv *pxmitpriv;
-       u8 thread_name[20];
 
        ret = _SUCCESS;
        padapter = context;
        pxmitpriv = &padapter->xmitpriv;
 
-       rtw_sprintf(thread_name, 20, "RTWHALXT-%s", ADPT_ARG(padapter));
-       thread_enter(thread_name);
+       allow_signal(SIGTERM);
 
        do {
                ret = rtl8723bs_xmit_handler(padapter);
index b21267d7ef7209f4e6c7e3bfd21cb24ef9b41c0b..8b1634f4091ec15971bdc6f5209a2c3a46d1b4db 100644 (file)
@@ -73,11 +73,6 @@ int _rtw_netif_rx(struct net_device *ndev, struct sk_buff *skb);
 
 extern void _rtw_init_queue(struct __queue     *pqueue);
 
-static inline void thread_enter(char *name)
-{
-       allow_signal(SIGTERM);
-}
-
 static inline void flush_signals_thread(void)
 {
        if (signal_pending(current))