From 7099deadda891e55e6cf9b433659c61126568e93 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 27 Sep 2003 12:01:01 +0000 Subject: The present defaults for the open and close for device drivers which provide no methods does not make any sense, and is not used by any driver. It is a pretty hard to come up with even a theoretical concept of a device driver which would always fail open and close with ENODEV. Change the defaults to be nullopen() and nullclose() which simply does nothing. Remove explicit initializations to these from the drivers which already used them. --- sys/netncp/ncp_mod.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/netncp/ncp_mod.c') diff --git a/sys/netncp/ncp_mod.c b/sys/netncp/ncp_mod.c index 4c119f9..e56495d 100644 --- a/sys/netncp/ncp_mod.c +++ b/sys/netncp/ncp_mod.c @@ -66,8 +66,6 @@ static dev_t ncp_dev; static d_ioctl_t ncp_ioctl; static struct cdevsw ncp_cdevsw = { - .d_open = nullopen, - .d_close = nullclose, .d_ioctl = ncp_ioctl, .d_name = "ncp", }; -- cgit v1.1