Author: mav
Date: Wed Dec 19 09:55:13 2012
New Revision: 244418
URL: http://svnweb.freebsd.org/changeset/base/244418

Log:
  Fix bug in r242720, that caused additional status page to not be used if
  descriptor page is supported.

Modified:
  head/sys/cam/scsi/scsi_enc_ses.c

Modified: head/sys/cam/scsi/scsi_enc_ses.c
==============================================================================
--- head/sys/cam/scsi/scsi_enc_ses.c    Wed Dec 19 05:07:27 2012        
(r244417)
+++ head/sys/cam/scsi/scsi_enc_ses.c    Wed Dec 19 09:55:13 2012        
(r244418)
@@ -1272,13 +1272,10 @@ ses_process_pages(enc_softc_t *enc, stru
 
        err = 0;
        for (i = 0; i < length; i++) {
-               if (page->params[i] == SesElementDescriptor) {
+               if (page->params[i] == SesElementDescriptor)
                        ses->ses_flags |= SES_FLAG_DESC;
-                       break;
-               } else if (page->params[i] == SesAddlElementStatus) {
+               else if (page->params[i] == SesAddlElementStatus)
                        ses->ses_flags |= SES_FLAG_ADDLSTATUS;
-                       break;
-               }
        }
 
 out:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to