lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat,  7 Aug 2021 15:52:29 +0530
From:   Saurav Girepunje <saurav.girepunje@...il.com>
To:     gregkh@...uxfoundation.org, Larry.Finger@...inger.net,
        saurav.girepunje@...il.com, insafonov@...il.com,
        straube.linux@...il.com, martin@...ser.cx, will+git@...d.me,
        dan.carpenter@...cle.com, apais@...ux.microsoft.com,
        yashsri421@...il.com, fabioaiuto83@...il.com,
        marcocesati@...il.com, ross.schm.dev@...il.com,
        linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH 1/4] staging: rtl8188eu: os_dep: Remove unused variable

Remove unused variable data and data_len from mon_recv_decrypted() in mon.c

Signed-off-by: Saurav Girepunje <saurav.girepunje@...il.com>
---
 drivers/staging/rtl8188eu/os_dep/mon.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/mon.c b/drivers/staging/rtl8188eu/os_dep/mon.c
index 73b9599fe0dc..7c7cb29ee005 100644
--- a/drivers/staging/rtl8188eu/os_dep/mon.c
+++ b/drivers/staging/rtl8188eu/os_dep/mon.c
@@ -58,8 +58,7 @@ static void mon_recv_decrypted(struct net_device *dev, const u8 *data,
 	netif_rx(skb);
 }
 
-static void mon_recv_encrypted(struct net_device *dev, const u8 *data,
-			       int data_len)
+static void mon_recv_encrypted(struct net_device *dev)
 {
 	if (net_ratelimit())
 		netdev_info(dev, "Encrypted packets are not supported");
@@ -93,7 +92,7 @@ void rtl88eu_mon_recv_hook(struct net_device *dev, struct recv_frame *frame)
 	if (attr->bdecrypted)
 		mon_recv_decrypted(dev, data, data_len, iv_len, icv_len);
 	else
-		mon_recv_encrypted(dev, data, data_len);
+		mon_recv_encrypted(dev);
 }
 
 /**
-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ