Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 09:55:13 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244418 - head/sys/cam/scsi
Message-ID:  <201212190955.qBJ9tDrS064176@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212190955.qBJ9tDrS064176>