Skip to content

Commit 006401d

Browse files
Dr. David Alan Gilbertherbertx
authored andcommitted
crypto: octeontx - Remove unused function otx_cpt_eng_grp_has_eng_type
otx_cpt_eng_grp_has_eng_type() was added in 2020 by commit d9110b0 ("crypto: marvell - add support for OCTEON TX CPT engine") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 1b5da8b commit 006401d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -506,17 +506,6 @@ int otx_cpt_uc_supports_eng_type(struct otx_cpt_ucode *ucode, int eng_type)
506506
}
507507
EXPORT_SYMBOL_GPL(otx_cpt_uc_supports_eng_type);
508508

509-
int otx_cpt_eng_grp_has_eng_type(struct otx_cpt_eng_grp_info *eng_grp,
510-
int eng_type)
511-
{
512-
struct otx_cpt_engs_rsvd *engs;
513-
514-
engs = find_engines_by_type(eng_grp, eng_type);
515-
516-
return (engs != NULL ? 1 : 0);
517-
}
518-
EXPORT_SYMBOL_GPL(otx_cpt_eng_grp_has_eng_type);
519-
520509
static void print_ucode_info(struct otx_cpt_eng_grp_info *eng_grp,
521510
char *buf, int size)
522511
{

drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,5 @@ int otx_cpt_try_create_default_eng_grps(struct pci_dev *pdev,
174174
void otx_cpt_set_eng_grps_is_rdonly(struct otx_cpt_eng_grps *eng_grps,
175175
bool is_rdonly);
176176
int otx_cpt_uc_supports_eng_type(struct otx_cpt_ucode *ucode, int eng_type);
177-
int otx_cpt_eng_grp_has_eng_type(struct otx_cpt_eng_grp_info *eng_grp,
178-
int eng_type);
179177

180178
#endif /* __OTX_CPTPF_UCODE_H */

0 commit comments

Comments
 (0)