diff options
author | mjacob <mjacob@FreeBSD.org> | 2010-03-26 20:22:18 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2010-03-26 20:22:18 +0000 |
commit | 0aa09230e166ee729b2a1a16491b4d07671d15ff (patch) | |
tree | 728bdc8c3dcd0d2cf181cc8f02f690d7181692c1 /sys/dev | |
parent | a46b38a42f562b04758e5da65b23006c201c478b (diff) | |
download | FreeBSD-src-0aa09230e166ee729b2a1a16491b4d07671d15ff.zip FreeBSD-src-0aa09230e166ee729b2a1a16491b4d07671d15ff.tar.gz |
D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).
MFC after: 1 week
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isp/isp_library.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |