Re: [PATCH] mac80211: Create ieee80211_if_process_skb from ieee80211_iface_work

2017-05-05 Thread Joe Perches
On Fri, 2017-05-05 at 11:39 +0200, Johannes Berg wrote: > On Fri, 2017-05-05 at 02:34 -0700, Joe Perches wrote: > > On Fri, 2017-05-05 at 11:06 +0200, Johannes Berg wrote: > > > > o Use explicit casts to proper types instead of casts to (void *) > > > >   and have the compiler do the implicit cast

Re: [PATCH] mac80211: Create ieee80211_if_process_skb from ieee80211_iface_work

2017-05-05 Thread Johannes Berg
On Fri, 2017-05-05 at 02:34 -0700, Joe Perches wrote: > On Fri, 2017-05-05 at 11:06 +0200, Johannes Berg wrote: > > > o Use explicit casts to proper types instead of casts to (void *) > > >   and have the compiler do the implicit cast > > > > I see no advantage in this, why? All it does is make th

Re: [PATCH] mac80211: Create ieee80211_if_process_skb from ieee80211_iface_work

2017-05-05 Thread Joe Perches
On Fri, 2017-05-05 at 11:06 +0200, Johannes Berg wrote: > > o Use explicit casts to proper types instead of casts to (void *) > >   and have the compiler do the implicit cast > > I see no advantage in this, why? All it does is make the code longer, > and if anything changes, you have to change it

Re: [PATCH] mac80211: Create ieee80211_if_process_skb from ieee80211_iface_work

2017-05-05 Thread Johannes Berg
> o Use explicit casts to proper types instead of casts to (void *) >   and have the compiler do the implicit cast I see no advantage in this, why? All it does is make the code longer, and if anything changes, you have to change it in multiple places now. johannes

[PATCH] mac80211: Create ieee80211_if_process_skb from ieee80211_iface_work

2017-05-04 Thread Joe Perches
This function is pretty long and the skb handling is a bit long too. Create a new function just for the skb processing. This isolates the code and reduces indentation a bit too. No change in object size. $ size net/mac80211/iface.o* textdata bss dec hex filename 15736 2