asr(4): Improve readability of an 'if' a bit.
authorSascha Wildner <saw@online.de>
Sat, 31 Mar 2012 03:24:38 +0000 (05:24 +0200)
committerSascha Wildner <saw@online.de>
Sat, 31 Mar 2012 03:24:38 +0000 (05:24 +0200)
sys/dev/raid/asr/asr.c

index 6666464..154f4cd 100644 (file)
@@ -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)