diff mbox series

crypto: chelsio - remove unused function

Message ID 1618383177-9832-1-git-send-email-jiapeng.chong@linux.alibaba.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: chelsio - remove unused function | expand

Commit Message

Jiapeng Chong April 14, 2021, 6:52 a.m. UTC
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(-)

Comments

Herbert Xu April 22, 2021, 7:46 a.m. UTC | #1
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.
diff mbox series

Patch

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));