mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Emanuel Bennici <benniciemanuel78@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Joe Perches <joe@perches.com>,
	Quytelda Kahja <quytelda@tamalin.org>,
	Michael Straube <straube.linux@gmail.com>,
	Mamta Shukla <mamtashukla555@gmail.com>,
	Nathan Chancellor <natechancellor@gmail.com>
Subject: [PATCH 09/10] staging: rtl8723bs: Remove Dead Functions in os_dep/ioctl_linux.c
Date: Sun, 17 Mar 2019 19:31:12 +0100	[thread overview]
Message-ID: <20190317183115.32393-9-benniciemanuel78@gmail.com> (raw)
In-Reply-To: <20190317183115.32393-1-benniciemanuel78@gmail.com>

The Functions `static int rtw_widi_set()` and
`static int rtw_widi_set_probe_request()` part of dead code due to
CONFIG_INTEL_WIDI.
The fix removes the deadcode.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
---
 .../staging/rtl8723bs/os_dep/ioctl_linux.c    | 36 -------------------
 1 file changed, 36 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index f1a1baf72488..4fcd404f0dfc 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -4514,42 +4514,6 @@ static int rtw_tdls_get(struct net_device *dev,
 
 
 
-#ifdef CONFIG_INTEL_WIDI
-static int rtw_widi_set(struct net_device *dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *wrqu, char *extra)
-{
-	int ret = 0;
-	struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
-
-	process_intel_widi_cmd(padapter, extra);
-
-	return ret;
-}
-
-static int rtw_widi_set_probe_request(struct net_device *dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *wrqu, char *extra)
-{
-	int	ret = 0;
-	u8 *pbuf = NULL;
-	struct adapter	*padapter = (struct adapter *)rtw_netdev_priv(dev);
-
-	pbuf = rtw_malloc(sizeof(l2_msg_t));
-	if (pbuf) {
-		if (copy_from_user(pbuf, wrqu->data.pointer, wrqu->data.length))
-			ret = -EFAULT;
-		/* memcpy(pbuf, wrqu->data.pointer, wrqu->data.length); */
-
-		if (wrqu->data.flags == 0)
-			intel_widi_wk_cmd(padapter, INTEL_WIDI_ISSUE_PROB_WK, pbuf, sizeof(l2_msg_t));
-		else if (wrqu->data.flags == 1)
-			rtw_set_wfd_rds_sink_info(padapter, (l2_msg_t *)pbuf);
-	}
-	return ret;
-}
-#endif /*  CONFIG_INTEL_WIDI */
-
 static int rtw_test(
 	struct net_device *dev,
 	struct iw_request_info *info,
-- 
2.19.1


  parent reply	other threads:[~2019-03-17 18:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-17 18:31 [PATCH 01/10] staging: rtl8723bs: Remove Dead Code in `struct mlme_priv` Emanuel Bennici
2019-03-17 18:31 ` [PATCH 02/10] staging: rtl8723bs: Remove Dead Include in include/drv_types.h Emanuel Bennici
2019-03-17 18:31 ` [PATCH 03/10] staging: rtl8723bs: Remove Dead Code in collect_bss_info Function Emanuel Bennici
2019-03-17 18:31 ` [PATCH 04/10] staging: rtl8723bs: Remove old unreachable Code Emanuel Bennici
2019-03-17 18:31 ` [PATCH 05/10] staging: rtl8723bs: Remove unreachable Code in core/rtw_cmd.c Emanuel Bennici
2019-03-19  9:32   ` Dan Carpenter
2019-03-17 18:31 ` [PATCH 06/10] staging: rtl8723bs: Remove Dead Code in os_dep/os_intfs.c Emanuel Bennici
2019-03-17 18:31 ` [PATCH 07/10] " Emanuel Bennici
2019-03-17 18:31 ` [PATCH 08/10] staging: rtl8723bs: Remove Dead Code in os_dep/ioctl_linux.c Emanuel Bennici
2019-03-17 18:31 ` Emanuel Bennici [this message]
2019-03-17 18:31 ` [PATCH 10/10] staging: rtl8723bs: Remove Dead Code in core/rtw_mlme.c Emanuel Bennici

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=20190317183115.32393-9-benniciemanuel78@gmail.com \
    --to=benniciemanuel78@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mamtashukla555@gmail.com \
    --cc=natechancellor@gmail.com \
    --cc=quytelda@tamalin.org \
    --cc=straube.linux@gmail.com \
    /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®