Skip to contentSkip to conversation

crypto: chelsio - remove unused function

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 14, 2021 – Apr 22, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: chelsio - remove unused function

Fix the following clang warning:

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

---
 drivers/crypto/chelsio/chcr_algo.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/crypto/chelsio/chcr_algo.c +0 -5
index f5a3366..c04cb49 100644
@@ -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));
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 10 lines · Jiapeng Chong

Fix the following clang warning:

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

---
 drivers/crypto/chelsio/chcr_algo.c | 5 -----
 1 file changed, 5 deletions(-)

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