summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/aac/aac.c')
-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 d1f2723..3b6ad54 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;
OpenPOWER on IntegriCloud