staging: rtl8723bs: remove unused code block in os_dep/ioctl_linux.c
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 9 Apr 2021 10:01:31 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:19:06 +0000 (16:19 +0200)
remove unused code block which does nothing.

A list is parsed but no value is written outside
the scope of the function rtw_dbg_port.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/b1d8f99f949fd79b27295e8a508d1b0c5861622f.1617962215.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

index 303a236..9735522 100644 (file)
@@ -2567,26 +2567,6 @@ static int rtw_dbg_port(struct net_device *dev,
                                        }
                                        break;
                                case 0x09:
-                                       {
-                                               int i;
-                                               struct list_head        *plist, *phead;
-
-                                               spin_lock_bh(&pstapriv->sta_hash_lock);
-
-                                               for (i = 0; i < NUM_STA; i++) {
-                                                       phead = &(pstapriv->sta_hash[i]);
-                                                       plist = get_next(phead);
-
-                                                       while (phead != plist) {
-                                                               psta = container_of(plist, struct sta_info, hash_list);
-
-                                                               plist = get_next(plist);
-                                                       }
-                                               }
-
-                                               spin_unlock_bh(&pstapriv->sta_hash_lock);
-
-                                       }
                                        break;
                                case 0x0a:
                                        {