Skip to content

Commit b744480

Browse files
Dr. David Alan Gilbertmartinkpetersen
authored andcommitted
scsi: bfa: Remove unused bfa_ioc code
These functions aren't called anywhere, remove them. Build tested only. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Link: https://lore.kernel.org/r/20240915125633.25036-4-linux@treblig.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 0604cf1 commit b744480

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

drivers/scsi/bfa/bfa_ioc.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,33 +2254,12 @@ bfa_ioc_boot(struct bfa_ioc_s *ioc, u32 boot_type, u32 boot_env)
22542254
return status;
22552255
}
22562256

2257-
/*
2258-
* Enable/disable IOC failure auto recovery.
2259-
*/
2260-
void
2261-
bfa_ioc_auto_recover(bfa_boolean_t auto_recover)
2262-
{
2263-
bfa_auto_recover = auto_recover;
2264-
}
2265-
2266-
2267-
22682257
bfa_boolean_t
22692258
bfa_ioc_is_operational(struct bfa_ioc_s *ioc)
22702259
{
22712260
return bfa_fsm_cmp_state(ioc, bfa_ioc_sm_op);
22722261
}
22732262

2274-
bfa_boolean_t
2275-
bfa_ioc_is_initialized(struct bfa_ioc_s *ioc)
2276-
{
2277-
u32 r32 = bfa_ioc_get_cur_ioc_fwstate(ioc);
2278-
2279-
return ((r32 != BFI_IOC_UNINIT) &&
2280-
(r32 != BFI_IOC_INITING) &&
2281-
(r32 != BFI_IOC_MEMTEST));
2282-
}
2283-
22842263
bfa_boolean_t
22852264
bfa_ioc_msgget(struct bfa_ioc_s *ioc, void *mbmsg)
22862265
{

drivers/scsi/bfa/bfa_ioc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ void bfa_ioc_ct2_poweron(struct bfa_ioc_s *ioc);
919919

920920
void bfa_ioc_attach(struct bfa_ioc_s *ioc, void *bfa,
921921
struct bfa_ioc_cbfn_s *cbfn, struct bfa_timer_mod_s *timer_mod);
922-
void bfa_ioc_auto_recover(bfa_boolean_t auto_recover);
923922
void bfa_ioc_detach(struct bfa_ioc_s *ioc);
924923
void bfa_ioc_suspend(struct bfa_ioc_s *ioc);
925924
void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev,
@@ -934,7 +933,6 @@ bfa_status_t bfa_ioc_boot(struct bfa_ioc_s *ioc, u32 boot_type,
934933
void bfa_ioc_isr(struct bfa_ioc_s *ioc, struct bfi_mbmsg_s *msg);
935934
void bfa_ioc_error_isr(struct bfa_ioc_s *ioc);
936935
bfa_boolean_t bfa_ioc_is_operational(struct bfa_ioc_s *ioc);
937-
bfa_boolean_t bfa_ioc_is_initialized(struct bfa_ioc_s *ioc);
938936
bfa_boolean_t bfa_ioc_is_disabled(struct bfa_ioc_s *ioc);
939937
bfa_boolean_t bfa_ioc_is_acq_addr(struct bfa_ioc_s *ioc);
940938
bfa_boolean_t bfa_ioc_fw_mismatch(struct bfa_ioc_s *ioc);

0 commit comments

Comments
 (0)