aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authoradam radford <aradford@gmail.com>2012-10-01 22:27:27 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-10-09 06:20:41 -0400
commita3a922099cb4952a6347966e692a8810ca7ffd1b (patch)
treec023b40cda0a1619fbe65bf5d1374490a2c8906a /drivers/scsi
parent8ead581609281720cf7388f989eb6570ff4e5551 (diff)
[SCSI] megaraid_sas: Remove duplicate code
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c1
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_fusion.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 427a658d44ab..d107a3ed46c5 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -5241,7 +5241,6 @@ megasas_aen_polling(struct work_struct *work)
5241 5241
5242 case MR_EVT_PD_REMOVED: 5242 case MR_EVT_PD_REMOVED:
5243 if (megasas_get_pd_list(instance) == 0) { 5243 if (megasas_get_pd_list(instance) == 0) {
5244 megasas_get_pd_list(instance);
5245 for (i = 0; i < MEGASAS_MAX_PD_CHANNELS; i++) { 5244 for (i = 0; i < MEGASAS_MAX_PD_CHANNELS; i++) {
5246 for (j = 0; 5245 for (j = 0;
5247 j < MEGASAS_MAX_DEV_PER_CHANNEL; 5246 j < MEGASAS_MAX_DEV_PER_CHANNEL;
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 93ebcac44e04..21eb0fcd7a56 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -1733,8 +1733,6 @@ complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex)
1733 if (reply_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) 1733 if (reply_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED)
1734 return IRQ_NONE; 1734 return IRQ_NONE;
1735 1735
1736 d_val.word = desc->Words;
1737
1738 num_completed = 0; 1736 num_completed = 0;
1739 1737
1740 while ((d_val.u.low != UINT_MAX) && (d_val.u.high != UINT_MAX)) { 1738 while ((d_val.u.low != UINT_MAX) && (d_val.u.high != UINT_MAX)) {