• yuan linyu's avatar
    net: replace more place to skb_put_[data:zero] · ad941e69
    yuan linyu authored
    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: default avataryuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ad941e69
fw.c 22.5 KB