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
499c357d
Commit
499c357d
authored
Apr 28, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o rose/rose_dev: use SET_MODULE_OWNER, removing calls to MOD_{INC,DEC}_USE_COUNT
parent
181b3504
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
net/rose/rose_dev.c
net/rose/rose_dev.c
+1
-2
No files found.
net/rose/rose_dev.c
View file @
499c357d
...
...
@@ -135,7 +135,6 @@ static int rose_set_mac_address(struct net_device *dev, void *addr)
static
int
rose_open
(
struct
net_device
*
dev
)
{
MOD_INC_USE_COUNT
;
netif_start_queue
(
dev
);
rose_add_loopback_node
((
rose_address
*
)
dev
->
dev_addr
);
return
0
;
...
...
@@ -145,7 +144,6 @@ static int rose_close(struct net_device *dev)
{
netif_stop_queue
(
dev
);
rose_del_loopback_node
((
rose_address
*
)
dev
->
dev_addr
);
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
@@ -169,6 +167,7 @@ static struct net_device_stats *rose_get_stats(struct net_device *dev)
int
rose_init
(
struct
net_device
*
dev
)
{
SET_MODULE_OWNER
(
dev
);
dev
->
mtu
=
ROSE_MAX_PACKET_SIZE
-
2
;
dev
->
hard_start_xmit
=
rose_xmit
;
dev
->
open
=
rose_open
;
...
...
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