Skip to content

Commit 8f4bfad

Browse files
Jing HuangJames Bottomley
authored andcommitted
[SCSI] bfa: remove unused defintions and misc cleanups
This patch removes unused functions, data strucutres, and definitions. It also includes misc comment and formatting cleanups. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent 2f2f40a commit 8f4bfad

9 files changed

Lines changed: 158 additions & 514 deletions

File tree

‎drivers/scsi/bfa/bfa.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ void bfa_hwct_msix_get_rme_range(struct bfa_s *bfa, u32 *start,
334334
void bfa_iocfc_get_bootwwns(struct bfa_s *bfa, u8 *nwwns, wwn_t *wwns);
335335
wwn_t bfa_iocfc_get_pwwn(struct bfa_s *bfa);
336336
wwn_t bfa_iocfc_get_nwwn(struct bfa_s *bfa);
337-
void bfa_iocfc_get_pbc_boot_cfg(struct bfa_s *bfa,
338-
struct bfa_boot_pbc_s *pbcfg);
339337
int bfa_iocfc_get_pbc_vports(struct bfa_s *bfa,
340338
struct bfi_pbc_vport_s *pbc_vport);
341339

‎drivers/scsi/bfa/bfa_core.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -998,18 +998,6 @@ bfa_iocfc_get_bootwwns(struct bfa_s *bfa, u8 *nwwns, wwn_t *wwns)
998998
memcpy(wwns, cfgrsp->bootwwns.wwn, sizeof(cfgrsp->bootwwns.wwn));
999999
}
10001000

1001-
void
1002-
bfa_iocfc_get_pbc_boot_cfg(struct bfa_s *bfa, struct bfa_boot_pbc_s *pbcfg)
1003-
{
1004-
struct bfa_iocfc_s *iocfc = &bfa->iocfc;
1005-
struct bfi_iocfc_cfgrsp_s *cfgrsp = iocfc->cfgrsp;
1006-
1007-
pbcfg->enable = cfgrsp->pbc_cfg.boot_enabled;
1008-
pbcfg->nbluns = cfgrsp->pbc_cfg.nbluns;
1009-
pbcfg->speed = cfgrsp->pbc_cfg.port_speed;
1010-
memcpy(pbcfg->pblun, cfgrsp->pbc_cfg.blun, sizeof(pbcfg->pblun));
1011-
}
1012-
10131001
int
10141002
bfa_iocfc_get_pbc_vports(struct bfa_s *bfa, struct bfi_pbc_vport_s *pbc_vport)
10151003
{

0 commit comments

Comments
 (0)