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 2/8] staging: rtl8192e: Remove unused function rtl92e_disable_nic
Date: Sun, 16 Apr 2023 09:19:45 +0200 [thread overview]
Message-ID: <5ce2ef58f66e25d7db7432c56c7b7c37a2b15fc1.1681627603.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1681627603.git.philipp.g.hortmann@gmail.com>
Remove unused function rtl92e_disable_nic to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 16 ----------------
drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 1 -
2 files changed, 17 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index a644543015ee..a0c6d117211a 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -2302,22 +2302,6 @@ bool rtl92e_enable_nic(struct net_device *dev)
return init_status;
}
-bool rtl92e_disable_nic(struct net_device *dev)
-{
- struct r8192_priv *priv = rtllib_priv(dev);
- u8 tmp_state = 0;
-
- priv->bdisable_nic = true;
- tmp_state = priv->rtllib->state;
- rtllib_softmac_stop_protocol(priv->rtllib, 0, false);
- priv->rtllib->state = tmp_state;
- _rtl92e_cancel_deferred_work(priv);
- rtl92e_irq_disable(dev);
-
- rtl92e_stop_adapter(dev, false);
- return true;
-}
-
module_pci_driver(rtl8192_pci_driver);
void rtl92e_check_rfctrl_gpio_timer(struct timer_list *t)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
index b0aa76574738..51240cbde0d3 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
@@ -433,7 +433,6 @@ u8 rtl92e_rx_db_to_percent(s8 antpower);
void rtl92e_copy_mpdu_stats(struct rtllib_rx_stats *psrc_stats,
struct rtllib_rx_stats *ptarget_stats);
bool rtl92e_enable_nic(struct net_device *dev);
-bool rtl92e_disable_nic(struct net_device *dev);
bool rtl92e_set_rf_state(struct net_device *dev,
enum rt_rf_power_state state_to_set,
--
2.40.0
next prev parent reply other threads:[~2023-04-16 7:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-16 7:19 [PATCH 0/8] staging: rtl8192e: Remove unchanged variables around rf_power_state Philipp Hortmann
2023-04-16 7:19 ` [PATCH 1/8] staging: rtl8192e: Remove unchanged variable RegRfPsLevel Philipp Hortmann
2023-04-16 7:19 ` Philipp Hortmann [this message]
2023-04-16 7:19 ` [PATCH 3/8] staging: rtl8192e: Remove unused macro RT_SET_PS_LEVEL Philipp Hortmann
2023-04-16 7:19 ` [PATCH 4/8] staging: rtl8192e: Remove second initialization of bActuallySet Philipp Hortmann
2023-04-16 7:20 ` [PATCH 5/8] staging: rtl8192e: Remove set to true while true of bfirst_after_down Philipp Hortmann
2023-04-16 7:20 ` [PATCH 6/8] staging: rtl8192e: Remove unchanged variable chan_forced Philipp Hortmann
2023-04-16 7:20 ` [PATCH 7/8] staging: rtl8192e: Remove unchanged variable frame_sync_monitor Philipp Hortmann
2023-04-16 7:20 ` [PATCH 8/8] staging: rtl8192e: Remove unchanged variables bfsync_processing and more 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=5ce2ef58f66e25d7db7432c56c7b7c37a2b15fc1.1681627603.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®