From: Sascha Wildner Date: Sat, 31 Mar 2012 03:24:38 +0000 (+0200) Subject: asr(4): Improve readability of an 'if' a bit. X-Git-Tag: v3.4.0rc~1148^2~8 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/7c4b329b90c5365ad713044ca9fc95bb65057f6b asr(4): Improve readability of an 'if' a bit. --- diff --git a/sys/dev/raid/asr/asr.c b/sys/dev/raid/asr/asr.c index 6666464a18..154f4cd36b 100644 --- a/sys/dev/raid/asr/asr.c +++ b/sys/dev/raid/asr/asr.c @@ -3620,9 +3620,10 @@ asr_ioctl(struct dev_ioctl_args *ap) int j; #endif /* ASR_IOCTL_COMPAT */ - if (sc != NULL) - switch(cmd) { + if (sc == NULL) + return (EINVAL); + switch(cmd) { case DPT_SIGNATURE: #ifdef ASR_IOCTL_COMPAT #if (dsDescription_size != 50)