summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2010-04-05 18:38:18 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2010-04-05 18:38:18 +0000
commit548354266d4c6ebc87ebff033b95383634c338b8 (patch)
treeba21db99c5bef972d9a39039e903e78a811fd2cb /sys
parentac7bf7be4d75193ca14f0c6f4b1c338e5f442456 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c
index 53b311d27500..1853bbad94d8 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);
}
}