mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
efb7929173
commit
f57d4d4641
1 changed files with 0 additions and 22 deletions
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue