linux-kernel.vger.kernel.org archive mirror
 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>, Arnd Bergmann <arnd@arndb.de>,
	Nathan Chancellor <natechancellor@gmail.com>,
	Hans de Goede <hdegoede@redhat.com>,
	Alexander Duyck <alexander.h.duyck@intel.com>
Subject: [PATCH 07/10] staging: rtl8723bs: Remove Dead Code in os_dep/os_intfs.c
Date: Sun, 17 Mar 2019 19:31:10 +0100	[thread overview]
Message-ID: <20190317183115.32393-7-benniciemanuel78@gmail.com> (raw)
In-Reply-To: <20190317183115.32393-1-benniciemanuel78@gmail.com>

The Functions `u8 rtw_init_drv_sw` and `u8 rtw_free_drv_sw` uses the
Macro CONFIG_INTEL_WIDI witch doesn't exists anymore.
This Patch removes those redundant Code Lines.

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

diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index 4980fedb2fcc..5c0fbf5170cc 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -813,14 +813,6 @@ u8 rtw_init_drv_sw(struct adapter *padapter)
 
 	rtw_hal_dm_init(padapter);
 
-#ifdef CONFIG_INTEL_WIDI
-	if (rtw_init_intel_widi(padapter) == _FAIL) {
-		DBG_871X("Can't rtw_init_intel_widi\n");
-		ret8 = _FAIL;
-		goto exit;
-	}
-#endif /* CONFIG_INTEL_WIDI */
-
 exit:
 
 	RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-rtw_init_drv_sw\n"));
@@ -857,10 +849,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
 {
 	RT_TRACE(_module_os_intfs_c_, _drv_info_, ("==>rtw_free_drv_sw"));
 
-#ifdef CONFIG_INTEL_WIDI
-	rtw_free_intel_widi(padapter);
-#endif /* CONFIG_INTEL_WIDI */
-
 	free_mlme_ext_priv(&padapter->mlmeextpriv);
 
 	rtw_free_cmd_priv(&padapter->cmdpriv);
-- 
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 ` Emanuel Bennici [this message]
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 ` [PATCH 09/10] staging: rtl8723bs: Remove Dead Functions " Emanuel Bennici
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-7-benniciemanuel78@gmail.com \
    --to=benniciemanuel78@gmail.com \
    --cc=alexander.h.duyck@intel.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=hdegoede@redhat.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=natechancellor@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;
as well as URLs for NNTP newsgroup(s).