crypto: chelsio - remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 14 Apr 2021 06:52:57 +0000 (14:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Apr 2021 07:31:30 +0000 (17:31 +1000)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c

index ef35028..6933546 100644 (file)
@@ -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));