From f57d4d4641a329fad1d373d2d098560da48d53ee Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 8 Jan 2020 19:05:23 +0000 Subject: [PATCH] Remove unneeded cdevsw methods and D_NEEDGIANT. Reviewed by: kib MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D23079 --- sys/opencrypto/cryptodev.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c index 52cf4987082..254482facd1 100644 --- a/sys/opencrypto/cryptodev.c +++ b/sys/opencrypto/cryptodev.c @@ -1472,24 +1472,6 @@ csefree(struct csession *cse) free(cse, M_XDATA); } -static int -cryptoopen(struct cdev *dev, int oflags, int devtype, struct thread *td) -{ - return (0); -} - -static int -cryptoread(struct cdev *dev, struct uio *uio, int ioflag) -{ - return (EIO); -} - -static int -cryptowrite(struct cdev *dev, struct uio *uio, int ioflag) -{ - return (EIO); -} - static int cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) { @@ -1531,10 +1513,6 @@ cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread static struct cdevsw crypto_cdevsw = { .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, - .d_open = cryptoopen, - .d_read = cryptoread, - .d_write = cryptowrite, .d_ioctl = cryptoioctl, .d_name = "crypto", };