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
7359f964
Commit
7359f964
authored
Feb 25, 2004
by
Christoph Hellwig
Committed by
Christoph Hellwig
Feb 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in sb1250-mac
parent
bf8f9a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/net/sb1250-mac.c
drivers/net/sb1250-mac.c
+1
-7
No files found.
drivers/net/sb1250-mac.c
View file @
7359f964
...
@@ -2456,8 +2456,6 @@ static int sbmac_open(struct net_device *dev)
...
@@ -2456,8 +2456,6 @@ static int sbmac_open(struct net_device *dev)
{
{
struct
sbmac_softc
*
sc
=
(
struct
sbmac_softc
*
)
dev
->
priv
;
struct
sbmac_softc
*
sc
=
(
struct
sbmac_softc
*
)
dev
->
priv
;
MOD_INC_USE_COUNT
;
if
(
debug
>
1
)
{
if
(
debug
>
1
)
{
printk
(
KERN_DEBUG
"%s: sbmac_open() irq %d.
\n
"
,
dev
->
name
,
dev
->
irq
);
printk
(
KERN_DEBUG
"%s: sbmac_open() irq %d.
\n
"
,
dev
->
name
,
dev
->
irq
);
}
}
...
@@ -2466,10 +2464,8 @@ static int sbmac_open(struct net_device *dev)
...
@@ -2466,10 +2464,8 @@ static int sbmac_open(struct net_device *dev)
* map/route interrupt
* map/route interrupt
*/
*/
if
(
request_irq
(
dev
->
irq
,
&
sbmac_intr
,
SA_SHIRQ
,
dev
->
name
,
dev
))
{
if
(
request_irq
(
dev
->
irq
,
&
sbmac_intr
,
SA_SHIRQ
,
dev
->
name
,
dev
))
MOD_DEC_USE_COUNT
;
return
-
EBUSY
;
return
-
EBUSY
;
}
/*
/*
* Configure default speed
* Configure default speed
...
@@ -2791,8 +2787,6 @@ static int sbmac_close(struct net_device *dev)
...
@@ -2791,8 +2787,6 @@ static int sbmac_close(struct net_device *dev)
sbdma_emptyring
(
&
(
sc
->
sbm_txdma
));
sbdma_emptyring
(
&
(
sc
->
sbm_txdma
));
sbdma_emptyring
(
&
(
sc
->
sbm_rxdma
));
sbdma_emptyring
(
&
(
sc
->
sbm_rxdma
));
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
...
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