svn commit: r356509 - head/sys/opencrypto

John Baldwin jhb at FreeBSD.org
Wed Jan 8 19:05:24 UTC 2020


Author: jhb
Date: Wed Jan  8 19:05:23 2020
New Revision: 356509
URL: https://svnweb.freebsd.org/changeset/base/356509

Log:
  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

Modified:
  head/sys/opencrypto/cryptodev.c

Modified: head/sys/opencrypto/cryptodev.c
==============================================================================
--- head/sys/opencrypto/cryptodev.c	Wed Jan  8 19:03:24 2020	(r356508)
+++ head/sys/opencrypto/cryptodev.c	Wed Jan  8 19:05:23 2020	(r356509)
@@ -1473,24 +1473,6 @@ csefree(struct csession *cse)
 }
 
 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)
 {
 	struct file *f;
@@ -1531,10 +1513,6 @@ cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data
 
 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",
 };


More information about the svn-src-head mailing list