mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Joseph <nicolas.joseph@homecomputing.fr>
To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Raphaël Beamonte" <raphael.beamonte@gmail.com>,
	"Cristina Opriceana" <cristina.opriceana@gmail.com>,
	"Luis de Bethencourt" <luis@debethencourt.com>,
	"Koray Gulcu" <koray.gulcu@ozu.edu.tr>,
	"Aya Mahfouz" <mahfouz.saif.elyazal@gmail.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Cc: Nicolas Joseph <nicolas.joseph@homecomputing.fr>
Subject: [PATCH] staging/rtl8192u: remove unused function
Date: Tue, 15 Sep 2015 11:35:20 +0200	[thread overview]
Message-ID: <1442309720-25927-1-git-send-email-nicolas.joseph@homecomputing.fr> (raw)
In-Reply-To: <CAE_Gge18tWXc2WC=xUV+VU6mVDbHAGweDt5w__qOoEsogq1hWQ@mail.gmail.com>

Remove unused function N_DBPSOfRate. This function was only used by
function ComputeTxTime that was removed in the previous
commit 742728f97a99 ("staging: rtl8192u: remove unused function.")

Signed-off-by: Nicolas Joseph <nicolas.joseph@homecomputing.fr>
---
 drivers/staging/rtl8192u/r8192U_core.c | 44 ----------------------------------
 1 file changed, 44 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index b143b36..80a6a4f 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -1227,50 +1227,6 @@ inline u8 rtl8192_IsWirelessBMode(u16 rate)
 		return 0;
 }
 
-u16 N_DBPSOfRate(u16 DataRate)
-{
-	u16 N_DBPS = 24;
-
-	switch (DataRate) {
-	case 60:
-		N_DBPS = 24;
-		break;
-
-	case 90:
-		N_DBPS = 36;
-		break;
-
-	case 120:
-		N_DBPS = 48;
-		break;
-
-	case 180:
-		N_DBPS = 72;
-		break;
-
-	case 240:
-		N_DBPS = 96;
-		break;
-
-	case 360:
-		N_DBPS = 144;
-		break;
-
-	case 480:
-		N_DBPS = 192;
-		break;
-
-	case 540:
-		N_DBPS = 216;
-		break;
-
-	default:
-		break;
-	}
-
-	return N_DBPS;
-}
-
 short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
-- 
2.5.2


      parent reply	other threads:[~2015-09-15  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-14 18:00 Nicolas Joseph
2015-09-14 18:25 ` Raphaël Beamonte
2015-09-15  9:21   ` Nicolas Joseph
2015-09-15  9:35   ` Nicolas Joseph [this message]

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=1442309720-25927-1-git-send-email-nicolas.joseph@homecomputing.fr \
    --to=nicolas.joseph@homecomputing.fr \
    --cc=cristina.opriceana@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=koray.gulcu@ozu.edu.tr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luis@debethencourt.com \
    --cc=mahfouz.saif.elyazal@gmail.com \
    --cc=raphael.beamonte@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®