mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
arcmsr: Remove never-true NULL check from cdev callbacks.
si_drv1 will always hold a non-NULL pointer. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35005
This commit is contained in:
parent
a9e5e04e64
commit
108adb2ff5
1 changed files with 0 additions and 13 deletions
|
|
@ -240,11 +240,6 @@ static struct cdevsw arcmsr_cdevsw={
|
|||
*/
|
||||
static int arcmsr_open(struct cdev *dev, int flags, int fmt, struct thread *proc)
|
||||
{
|
||||
struct AdapterControlBlock *acb = dev->si_drv1;
|
||||
|
||||
if (acb == NULL) {
|
||||
return ENXIO;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
/*
|
||||
|
|
@ -253,11 +248,6 @@ static int arcmsr_open(struct cdev *dev, int flags, int fmt, struct thread *proc
|
|||
*/
|
||||
static int arcmsr_close(struct cdev *dev, int flags, int fmt, struct thread *proc)
|
||||
{
|
||||
struct AdapterControlBlock *acb = dev->si_drv1;
|
||||
|
||||
if (acb == NULL) {
|
||||
return ENXIO;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
|
|
@ -268,9 +258,6 @@ static int arcmsr_ioctl(struct cdev *dev, u_long ioctl_cmd, caddr_t arg, int fla
|
|||
{
|
||||
struct AdapterControlBlock *acb = dev->si_drv1;
|
||||
|
||||
if (acb == NULL) {
|
||||
return ENXIO;
|
||||
}
|
||||
return (arcmsr_iop_ioctlcmd(acb, ioctl_cmd, arg));
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue