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
ff71578a
Commit
ff71578a
authored
Mar 14, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TUN]: Do not obscure error return from misc_register in tun_init.
parent
d763665b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/net/tun.c
drivers/net/tun.c
+5
-5
No files found.
drivers/net/tun.c
View file @
ff71578a
...
...
@@ -609,15 +609,15 @@ static struct miscdevice tun_miscdev = {
int
__init
tun_init
(
void
)
{
int
ret
=
0
;
printk
(
KERN_INFO
"Universal TUN/TAP device driver %s "
"(C)1999-2002 Maxim Krasnyansky
\n
"
,
TUN_VER
);
if
(
misc_register
(
&
tun_miscdev
))
{
ret
=
misc_register
(
&
tun_miscdev
);
if
(
ret
)
printk
(
KERN_ERR
"tun: Can't register misc device %d
\n
"
,
TUN_MINOR
);
return
-
EIO
;
}
return
0
;
return
ret
;
}
void
tun_cleanup
(
void
)
...
...
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