Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic mpt(4): remove ENOTTY / noop implementation of bi...
details: https://anonhg.NetBSD.org/src/rev/7e61542ec1c1
branches: trunk
changeset: 998925:7e61542ec1c1
user: cnst <cnst%NetBSD.org@localhost>
date: Wed May 08 06:32:01 2019 +0000
description:
mpt(4): remove ENOTTY / noop implementation of bio(4) setstate
* All other bio(4) drivers either do or don't implement each command.
* This changes the returned error code, but it does not seem to matter,
as some bio(4) drivers always return ENOTTY in the default case, whilst
others always return EINVAL (e.g., both cac(4) and ciss(4) for setstate).
diffstat:
sys/dev/ic/mpt_netbsd.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (48 lines):
diff -r a05c2938d469 -r 7e61542ec1c1 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c Wed May 08 06:31:02 2019 +0000
+++ b/sys/dev/ic/mpt_netbsd.c Wed May 08 06:32:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpt_netbsd.c,v 1.35 2018/02/05 22:14:26 mrg Exp $ */
+/* $NetBSD: mpt_netbsd.c,v 1.36 2019/05/08 06:32:01 cnst Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.35 2018/02/05 22:14:26 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.36 2019/05/08 06:32:01 cnst Exp $");
#include "bio.h"
@@ -113,7 +113,6 @@
static int mpt_bio_ioctl_vol(mpt_softc_t *, struct bioc_vol *);
static int mpt_bio_ioctl_disk(mpt_softc_t *, struct bioc_disk *);
static int mpt_bio_ioctl_disk_novol(mpt_softc_t *, struct bioc_disk *);
-static int mpt_bio_ioctl_setstate(mpt_softc_t *, struct bioc_setstate *);
#endif
void
@@ -1781,9 +1780,6 @@
case BIOCDISK:
error = mpt_bio_ioctl_disk(mpt, addr);
break;
- case BIOCSETSTATE:
- error = mpt_bio_ioctl_setstate(mpt, addr);
- break;
default:
error = EINVAL;
break;
@@ -2069,11 +2065,5 @@
if (ioc2) free(ioc2, M_DEVBUF);
return EINVAL;
}
-
-static int
-mpt_bio_ioctl_setstate(mpt_softc_t *mpt, struct bioc_setstate *bs)
-{
- return ENOTTY;
-}
#endif
Home |
Main Index |
Thread Index |
Old Index