Skip to content

Commit

Permalink
[SCSI] bfa: remove unused functions and misc cleanups
Browse files Browse the repository at this point in the history
Remove unused functions and fix checkpatch errors. Misc cleanups in
comment and formatting.

Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Maggie Zhang authored and James Bottomley committed Dec 21, 2010
1 parent f16a175 commit da99dcc
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 457 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/bfa/bfa_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ bfa_msix_lpu_err(struct bfa_s *bfa, int vec)
intr = readl(bfa->iocfc.bfa_regs.intr_status);

if (intr & (__HFN_INT_MBOX_LPU0 | __HFN_INT_MBOX_LPU1))
bfa_ioc_mbox_isr(&bfa->ioc);
bfa_ioc_mbox_isr(&bfa->ioc);

intr &= (__HFN_INT_ERR_EMC | __HFN_INT_ERR_LPU0 |
__HFN_INT_ERR_LPU1 | __HFN_INT_ERR_PSS | __HFN_INT_LL_HALT);
Expand Down
7 changes: 1 addition & 6 deletions drivers/scsi/bfa/bfa_fcbuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ fc_logo_build(struct fchs_s *fchs, struct fc_logo_s *logo, u32 d_id, u32 s_id,
return sizeof(struct fc_logo_s);
}

static u16
static u16
fc_adisc_x_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id,
u32 s_id, __be16 ox_id, wwn_t port_name,
wwn_t node_name, u8 els_code)
Expand Down Expand Up @@ -807,11 +807,6 @@ fc_rpsc_acc_build(struct fchs_s *fchs, struct fc_rpsc_acc_s *rpsc_acc,
return sizeof(struct fc_rpsc_acc_s);
}

/*
* TBD -
* . get rid of unnecessary memsets
*/

u16
fc_logo_rsp_parse(struct fchs_s *fchs, int len)
{
Expand Down
Loading

0 comments on commit da99dcc

Please sign in to comment.