[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170613.135413.281023855002218492.davem@davemloft.net>
Date: Tue, 13 Jun 2017 13:54:13 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: johannes@...solutions.net
Cc: netdev@...r.kernel.org, johannes.berg@...el.com
Subject: Re: [PATCH net-next] networking: use skb_put_zero()
From: Johannes Berg <johannes@...solutions.net>
Date: Tue, 13 Jun 2017 14:28:18 +0200
> From: Johannes Berg <johannes.berg@...el.com>
>
> Use the recently introduced helper to replace the pattern of
> skb_put() && memset(), this transformation was 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>
Applied, thanks!
Powered by blists - more mailing lists