linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mvsas:Fix two misuse enum type.
@ 2012-04-27  5:56 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2012-04-27  5:56 UTC (permalink / raw)
  To: JBottomley; +Cc: linux-scsi

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1263 bytes --]

drivers/scsi/mvsas/mv_sas.c: In function ‘mvs_update_phyinfo’:
drivers/scsi/mvsas/mv_sas.c:1157:34: warning: comparison between ‘enum
sas_device_type’ and ‘enum sas_dev_type [-Wenum-compare]
drivers/scsi/mvsas/mv_sas.c:1160:39: warning: comparison between ‘enum
sas_device_type’ and ‘enum sas_dev_type [-Wenum-compare]

Signed-off-by: majianpeng <majianpeng@gmail.com>
---
 drivers/scsi/mvsas/mv_sas.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
index fd3b283..59dd069 100644
--- a/drivers/scsi/mvsas/mv_sas.c
+++ b/drivers/scsi/mvsas/mv_sas.c
@@ -1154,10 +1154,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)
-- 
1.7.5.4

 				
--------------
majianpeng
2012-04-27

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-27  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27  5:56 [PATCH] mvsas:Fix two misuse enum type majianpeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).