Re: [RFC] skbuff: introduce skb_put_zero()

2017-05-26 Thread David Miller
From: Johannes Berg Date: Fri, 26 May 2017 08:58:49 +0200 > On Thu, 2017-05-25 at 13:01 -0400, David Miller wrote: >> From: Johannes Berg >> Date: Wed, 24 May 2017 09:07:47 +0200 >> >> > From: Johannes Berg >> >  >> > This pattern was introduced a number of times in mac80211 just now, >> > and

Re: [RFC] skbuff: introduce skb_put_zero()

2017-05-25 Thread Johannes Berg
On Thu, 2017-05-25 at 13:01 -0400, David Miller wrote: > From: Johannes Berg > Date: Wed, 24 May 2017 09:07:47 +0200 > > > From: Johannes Berg > >  > > This pattern was introduced a number of times in mac80211 just now, > > and since it's present in a number of other places it makes sense > > to

Re: [RFC] skbuff: introduce skb_put_zero()

2017-05-25 Thread David Miller
From: Johannes Berg Date: Wed, 24 May 2017 09:07:47 +0200 > From: Johannes Berg > > This pattern was introduced a number of times in mac80211 just now, > and since it's present in a number of other places it makes sense > to add a little helper for it. > > The transformations of all code were

[RFC] skbuff: introduce skb_put_zero()

2017-05-24 Thread Johannes Berg
From: Johannes Berg This pattern was introduced a number of times in mac80211 just now, and since it's present in a number of other places it makes sense to add a little helper for it. The transformations of all code were done with the following spatch: @@ identifier p; expression len; expressi