* [PATCH] ses: code_set == 1 is tested twice
@ 2009-02-17 15:59 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-02-17 15:59 UTC (permalink / raw)
To: linux-scsi
Maybe double check whether something else is missing instead?
Otherwise feel free to ignore.
--------------------------->8-------------8<------------------------------
code_set == 1 is tested twice.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c
index e946e05..a3da4ce 100644
--- a/drivers/scsi/ses.c
+++ b/drivers/scsi/ses.c
@@ -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 |
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-17 15:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 15:59 [PATCH] ses: code_set == 1 is tested twice Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox