diff options
author | yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn> | 2017-06-18 22:49:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-20 13:30:14 -0400 |
commit | ad941e693b24ad8b13c28382d323552ef6fb434b (patch) | |
tree | dd28b345cc39213a8a1796aabd9e5e30190808bd /net/irda | |
parent | de77b966ce8adcb4c58d50e2f087320d5479812a (diff) | |
download | linux-ad941e693b24ad8b13c28382d323552ef6fb434b.tar.gz linux-ad941e693b24ad8b13c28382d323552ef6fb434b.tar.bz2 linux-ad941e693b24ad8b13c28382d323552ef6fb434b.zip |
net: replace more place to skb_put_[data:zero]
spatch file,
@@
expression skb, len, data;
type t;
@@
-memcpy((t *)skb_put(skb, len), data, len);
+skb_put_data(skb, data, len);
@@
identifier p;
expression skb, len, data;
type t;
@@
-p = (t *)memset(skb_put(skb, len), data, len);
+p = skb_put_zero(skb, len);
@@
expression skb, len, data;
type t;
@@
-memcpy((t *)__skb_put(skb, len), data, len);
+__skb_put_data(skb, data, len);
@@
identifier p;
expression skb, len, data;
type t;
@@
-p = (t *)memset(__skb_put(skb, len), data, len);
+p = __skb_put_zero(skb, len);
Signed-off-by: yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
0 files changed, 0 insertions, 0 deletions