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
nexedi
linux
Commits
181b3504
Commit
181b3504
authored
Apr 28, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o netrom/nr_dev: use SET_MODULE_OWNER, removing calls to MOD_{INC,DEC}_USE_COUNT
parent
875489f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
net/netrom/nr_dev.c
net/netrom/nr_dev.c
+1
-2
No files found.
net/netrom/nr_dev.c
View file @
181b3504
...
@@ -170,7 +170,6 @@ static int nr_set_mac_address(struct net_device *dev, void *addr)
...
@@ -170,7 +170,6 @@ static int nr_set_mac_address(struct net_device *dev, void *addr)
static
int
nr_open
(
struct
net_device
*
dev
)
static
int
nr_open
(
struct
net_device
*
dev
)
{
{
MOD_INC_USE_COUNT
;
netif_start_queue
(
dev
);
netif_start_queue
(
dev
);
ax25_listen_register
((
ax25_address
*
)
dev
->
dev_addr
,
NULL
);
ax25_listen_register
((
ax25_address
*
)
dev
->
dev_addr
,
NULL
);
return
0
;
return
0
;
...
@@ -180,7 +179,6 @@ static int nr_close(struct net_device *dev)
...
@@ -180,7 +179,6 @@ static int nr_close(struct net_device *dev)
{
{
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
ax25_listen_release
((
ax25_address
*
)
dev
->
dev_addr
,
NULL
);
ax25_listen_release
((
ax25_address
*
)
dev
->
dev_addr
,
NULL
);
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
@@ -199,6 +197,7 @@ static struct net_device_stats *nr_get_stats(struct net_device *dev)
...
@@ -199,6 +197,7 @@ static struct net_device_stats *nr_get_stats(struct net_device *dev)
int
nr_init
(
struct
net_device
*
dev
)
int
nr_init
(
struct
net_device
*
dev
)
{
{
SET_MODULE_OWNER
(
dev
);
dev
->
mtu
=
NR_MAX_PACKET_SIZE
;
dev
->
mtu
=
NR_MAX_PACKET_SIZE
;
dev
->
hard_start_xmit
=
nr_xmit
;
dev
->
hard_start_xmit
=
nr_xmit
;
dev
->
open
=
nr_open
;
dev
->
open
=
nr_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