crypto: chtls - simplify a bit 'create_flowc_wr_skb()'
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/crypto/chelsio/chtls/chtls_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/chelsio/chtls/chtls_io.c +1 -1
@@ -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;
Signature · 1 line
2.20.1
Herbert Xu
maintainerQuoted 7 lines · Christophe JAILLET
Use '
__skb_put_data()' instead of rewritting it.
This improves readability.Signed-off-by Christophe JAILLET <[email protected]>--- drivers/crypto/chelsio/chtls/chtls_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt