staging: rtl8192e: Remove is_mesh from rtllib_send_probe_requests
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 29 Jul 2023 07:53:21 +0000 (09:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2023 10:29:05 +0000 (12:29 +0200)
Function rtllib_send_probe_requests() has unused parameter is_mesh.
Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/06a4c66112e22d6131711969dd4f5ac9fab91426.1690615475.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c

index 06b872c1ad683a9d08a72c47e60b564007b42dc2..614f19603af122720448eac06da45aea110bd615 100644 (file)
@@ -460,7 +460,7 @@ static void rtllib_send_probe(struct rtllib_device *ieee)
        }
 }
 
-static void rtllib_send_probe_requests(struct rtllib_device *ieee, u8 is_mesh)
+static void rtllib_send_probe_requests(struct rtllib_device *ieee)
 {
        if (ieee->active_scan && (ieee->softmac_features &
            IEEE_SOFTMAC_PROBERQ)) {
@@ -525,7 +525,7 @@ static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh)
 
                ieee->set_chan(ieee->dev, ch);
                if (ieee->active_channel_map[ch] == 1)
-                       rtllib_send_probe_requests(ieee, 0);
+                       rtllib_send_probe_requests(ieee);
 
                /* this prevent excessive time wait when we
                 * need to wait for a syncro scan to end..
@@ -587,7 +587,7 @@ static void rtllib_softmac_scan_wq(void *data)
        ieee->set_chan(ieee->dev, ieee->current_network.channel);
 
        if (ieee->active_channel_map[ieee->current_network.channel] == 1)
-               rtllib_send_probe_requests(ieee, 0);
+               rtllib_send_probe_requests(ieee);
 
        schedule_delayed_work(&ieee->softmac_scan_wq,
                              msecs_to_jiffies(RTLLIB_SOFTMAC_SCAN_TIME));