mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 03/10] staging: rtl8192e: Remove empty function rtllib_rx_Master()
Date: Sat, 29 Jul 2023 09:52:51 +0200	[thread overview]
Message-ID: <9604360121c5547cfaa282f73af5b948cdfbd769.1690615475.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1690615475.git.philipp.g.hortmann@gmail.com>

Function rtllib_rx_Master() returns always 0. Variable ret is already
initialized with 0. Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
 drivers/staging/rtl8192e/rtllib_rx.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 195ce0fecd29..b9d220b015f6 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -1445,12 +1445,6 @@ static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
 	return 0;
 }
 
-static int rtllib_rx_Master(struct rtllib_device *ieee, struct sk_buff *skb,
-		 struct rtllib_rx_stats *rx_stats)
-{
-	return 0;
-}
-
 static int rtllib_rx_Monitor(struct rtllib_device *ieee, struct sk_buff *skb,
 		 struct rtllib_rx_stats *rx_stats)
 {
@@ -1510,7 +1504,6 @@ int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb,
 		break;
 	case IW_MODE_MASTER:
 	case IW_MODE_REPEAT:
-		ret = rtllib_rx_Master(ieee, skb, rx_stats);
 		break;
 	case IW_MODE_MONITOR:
 		ret = rtllib_rx_Monitor(ieee, skb, rx_stats);
-- 
2.41.0


  parent reply	other threads:[~2023-07-29  7:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-29  7:52 [PATCH 00/10] staging: rtl8192e: Remove unused variables starting with p_intb Philipp Hortmann
2023-07-29  7:52 ` [PATCH 01/10] staging: rtl8192e: Remove unused variable p_intb Philipp Hortmann
2023-07-29  7:52 ` [PATCH 02/10] staging: rtl8192e: Remove unused variable intb in _rtl92e_irq() Philipp Hortmann
2023-07-29  7:52 ` Philipp Hortmann [this message]
2023-07-29  7:53 ` [PATCH 04/10] staging: rtl8192e: Remove empty function rtllib_rx_Mesh() Philipp Hortmann
2023-07-29  7:53 ` [PATCH 05/10] staging: rtl8192e: Remove unused variable is_mesh from rtllib_send_probe Philipp Hortmann
2023-07-29  7:53 ` [PATCH 06/10] staging: rtl8192e: Remove is_mesh from rtllib_send_probe_requests Philipp Hortmann
2023-07-29  7:53 ` [PATCH 08/10] staging: rtl8192e: Remove is_mesh from rtllib_softmac_scan_syncro Philipp Hortmann
2023-07-29  7:53 ` [PATCH 07/10] staging: rtl8192e: Remove is_mesh from rtllib_start_scan_syncro Philipp Hortmann
2023-07-29  7:53 ` [PATCH 09/10] staging: rtl8192e: Remove is_mesh from rtl92e_set_swcam Philipp Hortmann
2023-07-29  7:53 ` [PATCH 10/10] staging: rtl8192e: Remove DefaultKey " Philipp Hortmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9604360121c5547cfaa282f73af5b948cdfbd769.1690615475.git.philipp.g.hortmann@gmail.com \
    --to=philipp.g.hortmann@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®