All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: remove useless sdata variable
@ 2007-12-21  0:03 Johannes Berg
  2007-12-21 12:09 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2007-12-21  0:03 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Michael Wu

Dunno why I slipped that variable in...

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/mac80211/ieee80211_sta.c |    2 --
 1 file changed, 2 deletions(-)

--- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.253160428 +0100
+++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.113165907 +0100
@@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
 		return;
 
 	if (assoc) {
-		struct ieee80211_sub_if_data *sdata;
 		struct ieee80211_sta_bss *bss;
 
 		ifsta->flags |= IEEE80211_STA_ASSOCIATED;
 
-		sdata = IEEE80211_DEV_TO_SUB_IF(dev);
 		if (sdata->vif.type != IEEE80211_IF_TYPE_STA)
 			return;
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mac80211: remove useless sdata variable
  2007-12-21  0:03 [PATCH] mac80211: remove useless sdata variable Johannes Berg
@ 2007-12-21 12:09 ` Andreas Schwab
  2007-12-21 12:34   ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2007-12-21 12:09 UTC (permalink / raw)
  To: Johannes Berg; +Cc: John Linville, linux-wireless, Michael Wu

Johannes Berg <johannes@sipsolutions.net> writes:

> Dunno why I slipped that variable in...

Perhaps because it is used?

> --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.=
253160428 +0100
> +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.11316=
5907 +0100
> @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
>  		return;
> =20
>  	if (assoc) {
> -		struct ieee80211_sub_if_data *sdata;
>  		struct ieee80211_sta_bss *bss;
> =20
>  		ifsta->flags |=3D IEEE80211_STA_ASSOCIATED;
> =20
> -		sdata =3D IEEE80211_DEV_TO_SUB_IF(dev);
>  		if (sdata->vif.type !=3D IEEE80211_IF_TYPE_STA)
                    ^^^^^

Andreas.

--=20
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany
PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4=
ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mac80211: remove useless sdata variable
  2007-12-21 12:09 ` Andreas Schwab
@ 2007-12-21 12:34   ` Johannes Berg
  2007-12-21 12:58     ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2007-12-21 12:34 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: John Linville, linux-wireless, Michael Wu

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



> Perhaps because it is used?
> 
> > --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.253160428 +0100
> > +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.113165907 +0100
> > @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
> >  		return;
> >  
> >  	if (assoc) {
> > -		struct ieee80211_sub_if_data *sdata;

Too little context. There's another one in the surrounding scope that is
already initialised exactly the same.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mac80211: remove useless sdata variable
  2007-12-21 12:34   ` Johannes Berg
@ 2007-12-21 12:58     ` Andreas Schwab
  2007-12-21 14:15       ` John W. Linville
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2007-12-21 12:58 UTC (permalink / raw)
  To: Johannes Berg; +Cc: John Linville, linux-wireless, Michael Wu

Johannes Berg <johannes@sipsolutions.net> writes:

>> Perhaps because it is used?
>>=20
>> > --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:=
11.253160428 +0100
>> > +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.11=
3165907 +0100
>> > @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
>> >  		return;
>> > =20
>> >  	if (assoc) {
>> > -		struct ieee80211_sub_if_data *sdata;
>
> Too little context. There's another one in the surrounding scope that=
 is
> already initialised exactly the same.

Sorry, but I can't find it.  Was it added in an unmerged patch?

Andreas.

--=20
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany
PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4=
ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mac80211: remove useless sdata variable
  2007-12-21 12:58     ` Andreas Schwab
@ 2007-12-21 14:15       ` John W. Linville
  2007-12-21 16:35         ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: John W. Linville @ 2007-12-21 14:15 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Johannes Berg, linux-wireless, Michael Wu

On Fri, Dec 21, 2007 at 01:58:14PM +0100, Andreas Schwab wrote:
> Johannes Berg <johannes@sipsolutions.net> writes:
> 
> >> Perhaps because it is used?
> >> 
> >> > --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.253160428 +0100
> >> > +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.113165907 +0100
> >> > @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
> >> >  		return;
> >> >  
> >> >  	if (assoc) {
> >> > -		struct ieee80211_sub_if_data *sdata;
> >
> > Too little context. There's another one in the surrounding scope that is
> > already initialised exactly the same.
> 
> Sorry, but I can't find it.  Was it added in an unmerged patch?

I think I'm with Andreas here...?

-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mac80211: remove useless sdata variable
  2007-12-21 14:15       ` John W. Linville
@ 2007-12-21 16:35         ` Johannes Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Berg @ 2007-12-21 16:35 UTC (permalink / raw)
  To: John W. Linville; +Cc: Andreas Schwab, linux-wireless, Michael Wu

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


> > >> > --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.253160428 +0100
> > >> > +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.113165907 +0100
> > >> > @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
> > >> >  		return;
> > >> >  
> > >> >  	if (assoc) {
> > >> > -		struct ieee80211_sub_if_data *sdata;
> > >
> > > Too little context. There's another one in the surrounding scope that is
> > > already initialised exactly the same.
> > 
> > Sorry, but I can't find it.  Was it added in an unmerged patch?
> 
> I think I'm with Andreas here...?

Hmm. I guess it was then.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-21 16:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21  0:03 [PATCH] mac80211: remove useless sdata variable Johannes Berg
2007-12-21 12:09 ` Andreas Schwab
2007-12-21 12:34   ` Johannes Berg
2007-12-21 12:58     ` Andreas Schwab
2007-12-21 14:15       ` John W. Linville
2007-12-21 16:35         ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.