Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166441795
D35005.id105235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
783 B
Referenced Files
None
Subscribers
None
D35005.id105235.diff
View Options
Index: sys/dev/arcmsr/arcmsr.c
===================================================================
--- sys/dev/arcmsr/arcmsr.c
+++ 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:31 PM (6 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36734996
Default Alt Text
D35005.id105235.diff (783 B)
Attached To
Mode
D35005: arcmsr: Remove never-true NULL check from cdev callbacks.
Attached
Detach File
Event Timeline
Log In to Comment