From 739fd8c5335d98d7c473d3fbdff03bf8d9807a85 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Fri, 26 Mar 2010 20:22:18 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index 43c161d2782..020193394d9 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); } }