[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190919200428.2664-1-christophe.jaillet@wanadoo.fr>
Date: Thu, 19 Sep 2019 22:04:28 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: atul.gupta@...lsio.com, herbert@...dor.apana.org.au,
davem@...emloft.net, akpm@...ux-foundation.org,
willy@...radead.org, kirill.shutemov@...ux.intel.com,
kstewart@...uxfoundation.org, yuehaibing@...wei.com,
tglx@...utronix.de
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH] 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@...adoo.fr>
---
drivers/crypto/chelsio/chtls/chtls_io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/chelsio/chtls/chtls_io.c b/drivers/crypto/chelsio/chtls/chtls_io.c
index 0891ab829b1b..2512bfb24d71 100644
--- a/drivers/crypto/chelsio/chtls/chtls_io.c
+++ b/drivers/crypto/chelsio/chtls/chtls_io.c
@@ -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;
--
2.20.1
Powered by blists - more mailing lists