[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170525.130117.551364108206528221.davem@davemloft.net>
Date: Thu, 25 May 2017 13:01:17 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: johannes@...solutions.net
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
johannes.berg@...el.com
Subject: Re: [RFC] skbuff: introduce skb_put_zero()
From: Johannes Berg <johannes@...solutions.net>
Date: Wed, 24 May 2017 09:07:47 +0200
> From: Johannes Berg <johannes.berg@...el.com>
>
> 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;
> expression skb;
> @@
> -p = skb_put(skb, len);
> -memset(p, 0, len);
> +p = skb_put_zero(skb, len);
>
> Signed-off-by: Johannes Berg <johannes.berg@...el.com>
> ---
> NB: the patch won't apply to net-next because a few of the mac80211
> users don't exist there yet
Acked-by: David S. Miller <davem@...emloft.net>
No objections, feel free to push this in via your mac80211 tree.
Powered by blists - more mailing lists