diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-11-13 05:47:59 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-11-13 05:47:59 +0000 |
commit | 326020d68cf3f53e57d02a210694f31d3c5484f8 (patch) | |
tree | 1aec33cc6ed20aa28cb538b64ba88f993c6c7234 /sys/dev | |
parent | 64e2ca634009a39af00fa6e5899486eb4c908d14 (diff) |
ENOMEM is probably more appropriate than 0 in this error case.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/aac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index c7c436f934c..851cb0cb4c1 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.56 2013/11/13 05:26:23 mlarkin Exp $ */ +/* $OpenBSD: aac.c,v 1.57 2013/11/13 05:47:58 mlarkin Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -1186,7 +1186,7 @@ aac_alloc_commands(struct aac_softc *sc) { struct aac_command *cm; struct aac_fibmap *fm; - int i, error = 0; + int i, error = ENOMEM; if (sc->total_fibs + AAC_FIB_COUNT > sc->aac_max_fibs) return (ENOMEM); |