bio(4) drivers: remove noop fallthrough-to-default bio(4) cmd cases
* Makes it easier to do code/feature analysis by not having extra noop code/symbols spattered around. * Only an issue in cac(4) and ciss(4); other drivers don't do this. * No binary changes.
This commit is contained in:
parent
88c316691b
commit
ac84331e0e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cac.c,v 1.59 2018/09/03 16:29:31 riastradh Exp $ */
|
||||
/* $NetBSD: cac.c,v 1.60 2019/05/08 05:40:51 cnst Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2006, 2007 The NetBSD Foundation, Inc.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.59 2018/09/03 16:29:31 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.60 2019/05/08 05:40:51 cnst Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "bio.h"
|
||||
@ -642,9 +642,6 @@ cac_ioctl(device_t dev, u_long cmd, void *addr)
|
||||
/* No disk information yet */
|
||||
break;
|
||||
|
||||
case BIOCBLINK:
|
||||
case BIOCALARM:
|
||||
case BIOCSETSTATE:
|
||||
default:
|
||||
error = EINVAL;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ciss.c,v 1.39 2018/09/03 16:29:31 riastradh Exp $ */
|
||||
/* $NetBSD: ciss.c,v 1.40 2019/05/08 05:40:51 cnst Exp $ */
|
||||
/* $OpenBSD: ciss.c,v 1.68 2013/05/30 16:15:02 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.39 2018/09/03 16:29:31 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.40 2019/05/08 05:40:51 cnst Exp $");
|
||||
|
||||
#include "bio.h"
|
||||
|
||||
@ -1390,8 +1390,6 @@ ciss_ioctl(device_t dev, u_long cmd, void *addr)
|
||||
}
|
||||
break;
|
||||
|
||||
case BIOCALARM:
|
||||
case BIOCSETSTATE:
|
||||
default:
|
||||
error = EINVAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user