diff options
author | Maggie Zhang <xmzhang@brocade.com> | 2010-12-09 22:13:20 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:32:58 -0500 |
commit | da99dcc98dd66a2de4864645bcafffd93cf5a62f (patch) | |
tree | da6286a7f91f2087f916f6949dbd67d46570fe58 /drivers/scsi/bfa/bfa_ioc.c | |
parent | f16a17507b09e10e0cccc4d675ccbfe030d51ef1 (diff) |
[SCSI] bfa: remove unused functions and misc cleanups
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>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index cd532444ffd..c4d56506e96 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c | |||
@@ -586,13 +586,10 @@ bfa_ioc_sm_fail(struct bfa_ioc_s *ioc, enum ioc_event event) | |||
586 | } | 586 | } |
587 | } | 587 | } |
588 | 588 | ||
589 | |||
590 | |||
591 | /* | 589 | /* |
592 | * IOCPF State Machine | 590 | * IOCPF State Machine |
593 | */ | 591 | */ |
594 | 592 | ||
595 | |||
596 | /* | 593 | /* |
597 | * Reset entry actions -- initialize state machine | 594 | * Reset entry actions -- initialize state machine |
598 | */ | 595 | */ |
@@ -754,7 +751,6 @@ bfa_iocpf_sm_semwait(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
754 | } | 751 | } |
755 | } | 752 | } |
756 | 753 | ||
757 | |||
758 | static void | 754 | static void |
759 | bfa_iocpf_sm_hwinit_entry(struct bfa_iocpf_s *iocpf) | 755 | bfa_iocpf_sm_hwinit_entry(struct bfa_iocpf_s *iocpf) |
760 | { | 756 | { |
@@ -811,7 +807,6 @@ bfa_iocpf_sm_hwinit(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
811 | } | 807 | } |
812 | } | 808 | } |
813 | 809 | ||
814 | |||
815 | static void | 810 | static void |
816 | bfa_iocpf_sm_enabling_entry(struct bfa_iocpf_s *iocpf) | 811 | bfa_iocpf_sm_enabling_entry(struct bfa_iocpf_s *iocpf) |
817 | { | 812 | { |
@@ -873,8 +868,6 @@ bfa_iocpf_sm_enabling(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
873 | } | 868 | } |
874 | } | 869 | } |
875 | 870 | ||
876 | |||
877 | |||
878 | static void | 871 | static void |
879 | bfa_iocpf_sm_ready_entry(struct bfa_iocpf_s *iocpf) | 872 | bfa_iocpf_sm_ready_entry(struct bfa_iocpf_s *iocpf) |
880 | { | 873 | { |
@@ -915,7 +908,6 @@ bfa_iocpf_sm_ready(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
915 | } | 908 | } |
916 | } | 909 | } |
917 | 910 | ||
918 | |||
919 | static void | 911 | static void |
920 | bfa_iocpf_sm_disabling_entry(struct bfa_iocpf_s *iocpf) | 912 | bfa_iocpf_sm_disabling_entry(struct bfa_iocpf_s *iocpf) |
921 | { | 913 | { |
@@ -990,7 +982,6 @@ bfa_iocpf_sm_disabled(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
990 | } | 982 | } |
991 | } | 983 | } |
992 | 984 | ||
993 | |||
994 | static void | 985 | static void |
995 | bfa_iocpf_sm_initfail_entry(struct bfa_iocpf_s *iocpf) | 986 | bfa_iocpf_sm_initfail_entry(struct bfa_iocpf_s *iocpf) |
996 | { | 987 | { |
@@ -1028,7 +1019,6 @@ bfa_iocpf_sm_initfail(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
1028 | } | 1019 | } |
1029 | } | 1020 | } |
1030 | 1021 | ||
1031 | |||
1032 | static void | 1022 | static void |
1033 | bfa_iocpf_sm_fail_entry(struct bfa_iocpf_s *iocpf) | 1023 | bfa_iocpf_sm_fail_entry(struct bfa_iocpf_s *iocpf) |
1034 | { | 1024 | { |
@@ -1078,8 +1068,6 @@ bfa_iocpf_sm_fail(struct bfa_iocpf_s *iocpf, enum iocpf_event event) | |||
1078 | } | 1068 | } |
1079 | } | 1069 | } |
1080 | 1070 | ||
1081 | |||
1082 | |||
1083 | /* | 1071 | /* |
1084 | * BFA IOC private functions | 1072 | * BFA IOC private functions |
1085 | */ | 1073 | */ |
@@ -1123,7 +1111,6 @@ bfa_ioc_sem_get(void __iomem *sem_reg) | |||
1123 | return BFA_FALSE; | 1111 | return BFA_FALSE; |
1124 | } | 1112 | } |
1125 | 1113 | ||
1126 | |||
1127 | static void | 1114 | static void |
1128 | bfa_ioc_hw_sem_get(struct bfa_ioc_s *ioc) | 1115 | bfa_ioc_hw_sem_get(struct bfa_ioc_s *ioc) |
1129 | { | 1116 | { |
@@ -1305,7 +1292,6 @@ bfa_ioc_msgflush(struct bfa_ioc_s *ioc) | |||
1305 | writel(1, ioc->ioc_regs.lpu_mbox_cmd); | 1292 | writel(1, ioc->ioc_regs.lpu_mbox_cmd); |
1306 | } | 1293 | } |
1307 | 1294 | ||
1308 | |||
1309 | static void | 1295 | static void |
1310 | bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force) | 1296 | bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force) |
1311 | { | 1297 | { |
@@ -1738,7 +1724,6 @@ bfa_ioc_smem_clr(struct bfa_ioc_s *ioc, u32 soff, u32 sz) | |||
1738 | return BFA_STATUS_OK; | 1724 | return BFA_STATUS_OK; |
1739 | } | 1725 | } |
1740 | 1726 | ||
1741 | |||
1742 | static void | 1727 | static void |
1743 | bfa_ioc_pf_fwmismatch(struct bfa_ioc_s *ioc) | 1728 | bfa_ioc_pf_fwmismatch(struct bfa_ioc_s *ioc) |
1744 | { | 1729 | { |
@@ -1752,7 +1737,6 @@ bfa_ioc_pf_fwmismatch(struct bfa_ioc_s *ioc) | |||
1752 | "with the driver version\n"); | 1737 | "with the driver version\n"); |
1753 | } | 1738 | } |
1754 | 1739 | ||
1755 | |||
1756 | bfa_status_t | 1740 | bfa_status_t |
1757 | bfa_ioc_pll_init(struct bfa_ioc_s *ioc) | 1741 | bfa_ioc_pll_init(struct bfa_ioc_s *ioc) |
1758 | { | 1742 | { |