From 0aa09230e166ee729b2a1a16491b4d07671d15ff Mon Sep 17 00:00:00 2001 From: mjacob Date: Fri, 26 Mar 2010 20:22:18 +0000 Subject: D'oh- isp_handle_index' logic was reversed (not used in FreeBSD). MFC after: 1 week --- sys/dev/isp/isp_library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/isp/isp_library.c') diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index 43c161d..0201933 100644 --- a/sys/dev/isp/isp_library.c +++ b/sys/dev/isp/isp_library.c @@ -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); } } -- cgit v1.1