Linux wireless drivers development
 help / color / mirror / Atom feed
From: okias <d.okias@gmail.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, herton@mandriva.com.br,
	htl10@users.sourceforge.net, Larry.Finger@lwfinger.net
Subject: [PATCH] rtl818x: small cleanup
Date: Wed, 17 Feb 2010 18:05:01 +0100	[thread overview]
Message-ID: <c2673ca61002170905g788ce856uc82adc490c2328be@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

-2 lines...

-- 
Jabber/XMPP: okias@isgeek.info
SIP VoIP: sip:17474537254@proxy01.sipphone.com

[-- Attachment #2: 0001-wireless-rtl818x-small-cleanup.patch --]
[-- Type: application/octet-stream, Size: 1029 bytes --]

From fbbd51121e6558d103f1f83169cd078e70970a1b Mon Sep 17 00:00:00 2001
From: David Heidelberger <d.okias@gmail.com>
Date: Wed, 17 Feb 2010 17:09:03 +0100
Subject: [PATCH] wireless/rtl818x: small cleanup

---
 drivers/net/wireless/rtl818x/rtl8187_dev.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c
index 7ba3052..2cc6881 100644
--- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -1165,7 +1165,7 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev,
 {
 	struct rtl8187_priv *priv = dev->priv;
 	int i;
-	u8 reg;
+	u8 reg = 0;
 
 	if (changed & BSS_CHANGED_BSSID) {
 		mutex_lock(&priv->conf_mutex);
@@ -1175,8 +1175,6 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev,
 
 		if (priv->is_rtl8187b)
 			reg = RTL818X_MSR_ENEDCA;
-		else
-			reg = 0;
 
 		if (is_valid_ether_addr(info->bssid)) {
 			reg |= RTL818X_MSR_INFRA;
-- 
1.7.0


             reply	other threads:[~2010-02-17 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17 17:05 okias [this message]
2010-02-17 17:15 ` [PATCH] rtl818x: small cleanup Larry Finger
2010-02-17 17:16 ` Hin-Tak Leung

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=c2673ca61002170905g788ce856uc82adc490c2328be@mail.gmail.com \
    --to=d.okias@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=herton@mandriva.com.br \
    --cc=htl10@users.sourceforge.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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