svn commit: r206203 - stable/7/sys/dev/isp

Matt Jacob mjacob at FreeBSD.org
Mon Apr 5 18:38:19 UTC 2010


Author: mjacob
Date: Mon Apr  5 18:38:18 2010
New Revision: 206203
URL: http://svn.freebsd.org/changeset/base/206203

Log:
  This is an MFC of 205712.
  
  D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).

Modified:
  stable/7/sys/dev/isp/isp_library.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/isp/isp_library.c
==============================================================================
--- stable/7/sys/dev/isp/isp_library.c	Mon Apr  5 18:36:47 2010	(r206202)
+++ stable/7/sys/dev/isp/isp_library.c	Mon Apr  5 18:38:18 2010	(r206203)
@@ -294,10 +294,10 @@ uint32_t
 isp_handle_index(ispsoftc_t *isp, uint32_t handle)
 {
 	if (!ISP_VALID_HANDLE(isp, handle)) {
-		return (handle & ISP_HANDLE_CMD_MASK);
-	} else {
 		isp_prt(isp, ISP_LOGERR, "%s: bad handle 0x%x", __func__, handle);
 		return (ISP_BAD_HANDLE_INDEX);
+	} else {
+		return (handle & ISP_HANDLE_CMD_MASK);
 	}
 }
 


More information about the svn-src-stable-7 mailing list