aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorLuoqi Chen <luoqi@FreeBSD.org>2007-02-14 09:10:37 +0000
committerLuoqi Chen <luoqi@FreeBSD.org>2007-02-14 09:10:37 +0000
commit1a681311daa26571f5364d45dc6f2700e52a35da (patch)
treee3005fe5fe5e960c891dcd5e906ca057c039dc73 /sys/dev/aac
parenteffb1b7fcba84c9a651018587f398965ab460f7d (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index d1f2723c3d8e..3b6ad54fb9d0 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -2982,7 +2982,7 @@ aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg)
switch (event->ev_type) {
case AAC_EVENT_CMFREE:
mtx_lock(&sc->aac_io_lock);
- if (aac_alloc_command(sc, (struct aac_command **)arg) == 0) {
+ if (aac_alloc_command(sc, (struct aac_command **)arg)) {
aac_add_event(sc, event);
mtx_unlock(&sc->aac_io_lock);
return;