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
1b36efe0
Commit
1b36efe0
authored
Oct 29, 2007
by
Jeff Garzik
Committed by
David S. Miller
Jan 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hamradio/scc: kill unnecessary use of 'irq' function arg
Signed-off-by:
Jeff Garzik
<
jgarzik@redhat.com
>
parent
ef878b88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/net/hamradio/scc.c
drivers/net/hamradio/scc.c
+5
-3
No files found.
drivers/net/hamradio/scc.c
View file @
1b36efe0
...
...
@@ -201,7 +201,6 @@ static void z8530_init(void);
static
void
init_channel
(
struct
scc_channel
*
scc
);
static
void
scc_key_trx
(
struct
scc_channel
*
scc
,
char
tx
);
static
irqreturn_t
scc_isr
(
int
irq
,
void
*
dev_id
);
static
void
scc_init_timer
(
struct
scc_channel
*
scc
);
static
int
scc_net_alloc
(
const
char
*
name
,
struct
scc_channel
*
scc
);
...
...
@@ -629,6 +628,7 @@ static void scc_isr_dispatch(struct scc_channel *scc, int vector)
static
irqreturn_t
scc_isr
(
int
irq
,
void
*
dev_id
)
{
int
chip_irq
=
(
long
)
dev_id
;
unsigned
char
vector
;
struct
scc_channel
*
scc
;
struct
scc_ctrl
*
ctrl
;
...
...
@@ -665,7 +665,7 @@ static irqreturn_t scc_isr(int irq, void *dev_id)
ctrl
=
SCC_ctrl
;
while
(
ctrl
->
chan_A
)
{
if
(
ctrl
->
irq
!=
irq
)
if
(
ctrl
->
irq
!=
chip_
irq
)
{
ctrl
++
;
continue
;
...
...
@@ -1732,7 +1732,9 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
if
(
!
Ivec
[
hwcfg
.
irq
].
used
&&
hwcfg
.
irq
)
{
if
(
request_irq
(
hwcfg
.
irq
,
scc_isr
,
IRQF_DISABLED
,
"AX.25 SCC"
,
NULL
))
if
(
request_irq
(
hwcfg
.
irq
,
scc_isr
,
IRQF_DISABLED
,
"AX.25 SCC"
,
(
void
*
)(
long
)
hwcfg
.
irq
))
printk
(
KERN_WARNING
"z8530drv: warning, cannot get IRQ %d
\n
"
,
hwcfg
.
irq
);
else
Ivec
[
hwcfg
.
irq
].
used
=
1
;
...
...
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