crypto: chtls - simplify a bit 'create_flowc_wr_skb()'
Use '__skb_put_data()' instead of rewritting it. This improves readability. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
128c664292
commit
3dc8b01ebc
@ -97,7 +97,7 @@ static struct sk_buff *create_flowc_wr_skb(struct sock *sk,
|
||||
if (!skb)
|
||||
return NULL;
|
||||
|
||||
memcpy(__skb_put(skb, flowclen), flowc, flowclen);
|
||||
__skb_put_data(skb, flowc, flowclen);
|
||||
skb_set_queue_mapping(skb, (csk->txq_idx << 1) | CPL_PRIORITY_DATA);
|
||||
|
||||
return skb;
|
||||
|
Loading…
x
Reference in New Issue
Block a user