Skip to contentSkip to conversation

ses: code_set == 1 is tested twice

PATCH New Roel Kluin 1 participant 1 message Feb 17, 2009 SCSI

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 ses: code_set == 1 is tested twice

Maybe double check whether something else is missing instead? Otherwise feel free to ignore. --------------------------->8-------------8<------------------------------ code_set == 1 is tested twice.

---

drivers/scsi/ses.c +1 -1
index e946e05..a3da4ce 100644
@@ -393,7 +393,7 @@ static void ses_match_to_enclosure(struct enclosure_device *edev,
 		u8 type = desc[1] & 0x0f;
 		u8 len = desc[3];
 
-		if (piv && code_set == 1 && assoc == 1 && code_set == 1
+		if (piv && code_set == 1 && assoc == 1
 		    && proto == SCSI_PROTOCOL_SAS && type == 3 && len == 8)
 			efd.addr = (u64)desc[4] << 56 |
 				(u64)desc[5] << 48 |