networking: use skb_put_zero()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Jun 2017 12:28:18 +0000 (14:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 17:54:03 +0000 (13:54 -0400)
commitaa9f979c41043d9fcf7957c99948e20bbddefc7f
tree121013b5d9c5ae6189070a7bb9f7d209962e4a22
parent0e74008b668febb7ae024c7ee04b30dcbd1f1efd
networking: use skb_put_zero()

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@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apple/bmac.c
drivers/net/ethernet/broadcom/bcm63xx_enet.c
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/wireless/marvell/mwifiex/tdls.c
drivers/nfc/pn533/pn533.c
lib/nlattr.c
net/sctp/sm_make_chunk.c