Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166441847
D35005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
752 B
Referenced Files
None
Subscribers
None
D35005.diff
View Options
diff --git a/sys/dev/arcmsr/arcmsr.c b/sys/dev/arcmsr/arcmsr.c
--- a/sys/dev/arcmsr/arcmsr.c
+++ b/sys/dev/arcmsr/arcmsr.c
@@ -240,11 +240,6 @@
*/
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_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 @@
{
struct AdapterControlBlock *acb = dev->si_drv1;
- if (acb == NULL) {
- return ENXIO;
- }
return (arcmsr_iop_ioctlcmd(acb, ioctl_cmd, arg));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 2:32 PM (12 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36735018
Default Alt Text
D35005.diff (752 B)
Attached To
Mode
D35005: arcmsr: Remove never-true NULL check from cdev callbacks.
Attached
Detach File
Event Timeline
Log In to Comment