Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 d9110b0b01ff ("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>

authored by

Dr. David Alan Gilbert and committed by
Herbert Xu
006401d2 1b5da8b2

-13
-11
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
··· 506 506 } 507 507 EXPORT_SYMBOL_GPL(otx_cpt_uc_supports_eng_type); 508 508 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 - 520 509 static void print_ucode_info(struct otx_cpt_eng_grp_info *eng_grp, 521 510 char *buf, int size) 522 511 {
-2
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h
··· 174 174 void otx_cpt_set_eng_grps_is_rdonly(struct otx_cpt_eng_grps *eng_grps, 175 175 bool is_rdonly); 176 176 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); 179 177 180 178 #endif /* __OTX_CPTPF_UCODE_H */