Skip to contentSkip to conversation

mvsas: Fix warning in mvs_update_phyinfo

PATCH New Tom Rini 1 participant 1 message Oct 20, 2012 SCSI

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 mvsas: Fix warning in mvs_update_phyinfo

In mvs_update_phyinfo we were comparing phy->identify.device_type against enum sas_dev_type instead of enum sas_device_type

Cc Xiangliang Yu <[email protected]>
Cc Dan Williams <[email protected]>
Cc James Bottomley <[email protected]>
---
 drivers/scsi/mvsas/mv_sas.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/mvsas/mv_sas.c +2 -2
index a3776d6..9f91359 100644
@@ -1153,10 +1153,10 @@ void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st)
 			phy->identify.device_type =
 				phy->att_dev_info & PORT_DEV_TYPE_MASK;
 
-			if (phy->identify.device_type == SAS_END_DEV)
+			if (phy->identify.device_type == SAS_END_DEVICE)
 				phy->identify.target_port_protocols =
 							SAS_PROTOCOL_SSP;
-			else if (phy->identify.device_type != NO_DEVICE)
+			else if (phy->identify.device_type != SAS_PHY_UNUSED)
 				phy->identify.target_port_protocols =
 							SAS_PROTOCOL_SMP;
 			if (oob_done)
Signature · 1 line
1.7.9.5