All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: chelsio - remove unused function
@ 2021-04-14  6:52 Jiapeng Chong
  2021-04-22  7:46 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-14  6:52 UTC (permalink / raw)
  To: ayush.sawal
  Cc: vinay.yadav, rohitm, herbert, davem, linux-crypto, linux-kernel,
	Jiapeng Chong

Fix the following clang warning:

drivers/crypto/chelsio/chcr_algo.c:129:19: warning: unused function
'is_ofld_imm' [-Wunused-function].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/crypto/chelsio/chcr_algo.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index f5a3366..c04cb49 100644
--- a/drivers/crypto/chelsio/chcr_algo.c
+++ b/drivers/crypto/chelsio/chcr_algo.c
@@ -126,11 +126,6 @@ static inline struct uld_ctx *ULD_CTX(struct chcr_context *ctx)
 	return container_of(ctx->dev, struct uld_ctx, dev);
 }
 
-static inline int is_ofld_imm(const struct sk_buff *skb)
-{
-	return (skb->len <= SGE_MAX_WR_LEN);
-}
-
 static inline void chcr_init_hctx_per_wr(struct chcr_ahash_req_ctx *reqctx)
 {
 	memset(&reqctx->hctx_wr, 0, sizeof(struct chcr_hctx_per_wr));
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: chelsio - remove unused function
  2021-04-14  6:52 [PATCH] crypto: chelsio - remove unused function Jiapeng Chong
@ 2021-04-22  7:46 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-04-22  7:46 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: ayush.sawal, vinay.yadav, rohitm, davem, linux-crypto, linux-kernel

On Wed, Apr 14, 2021 at 02:52:57PM +0800, Jiapeng Chong wrote:
> Fix the following clang warning:
> 
> drivers/crypto/chelsio/chcr_algo.c:129:19: warning: unused function
> 'is_ofld_imm' [-Wunused-function].
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
>  drivers/crypto/chelsio/chcr_algo.c | 5 -----
>  1 file changed, 5 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-22  7:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14  6:52 [PATCH] crypto: chelsio - remove unused function Jiapeng Chong
2021-04-22  7:46 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.