Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
62e492d5
Commit
62e492d5
authored
Dec 03, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] socksys.c cleanup
removed gratitious local devfs_handle_t variable
parent
e038ef09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
arch/sparc64/solaris/socksys.c
arch/sparc64/solaris/socksys.c
+5
-7
No files found.
arch/sparc64/solaris/socksys.c
View file @
62e492d5
...
...
@@ -171,8 +171,6 @@ static struct file_operations socksys_fops = {
.
release
=
socksys_release
,
};
static
devfs_handle_t
devfs_handle
;
int
__init
init_socksys
(
void
)
{
...
...
@@ -193,7 +191,7 @@ init_socksys(void)
printk
(
"Couldn't create socket
\n
"
);
return
ret
;
}
devfs_
handle
=
devfs_
register
(
NULL
,
"socksys"
,
DEVFS_FL_DEFAULT
,
devfs_register
(
NULL
,
"socksys"
,
DEVFS_FL_DEFAULT
,
30
,
0
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
socksys_fops
,
NULL
);
...
...
@@ -212,5 +210,5 @@ cleanup_socksys(void)
{
if
(
unregister_chrdev
(
30
,
"socksys"
))
printk
(
"Couldn't unregister socksys character device
\n
"
);
devfs_
unregister
(
devfs_handle
);
devfs_
remove
(
"socksys"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment