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
d46a47ea
Commit
d46a47ea
authored
Apr 05, 2002
by
Dave Jones
Committed by
Linus Torvalds
Apr 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small janitor fixes from net drivers rrunner and sgiseeq.
parent
c5ad8565
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
drivers/net/rrunner.c
drivers/net/rrunner.c
+4
-4
drivers/net/sgiseeq.c
drivers/net/sgiseeq.c
+12
-10
No files found.
drivers/net/rrunner.c
View file @
d46a47ea
...
...
@@ -75,13 +75,13 @@ static inline void netif_start_queue(struct net_device *dev)
#define rr_mark_net_bh(foo) mark_bh(foo)
#define rr_if_busy(dev) dev->tbusy
#define rr_if_running(dev) dev->start
/* Currently unused. */
#define rr_if_down(dev)
{do{dev->start = 0;}while (0);}
#define rr_if_down(dev)
do { dev->start = 0; } while (0)
#else
#define NET_BH 0
#define rr_mark_net_bh(foo)
{do{} while(0);}
#define rr_mark_net_bh(foo)
do { } while(0)
#define rr_if_busy(dev) netif_queue_stopped(dev)
#define rr_if_running(dev) netif_running(dev)
#define rr_if_down(dev)
{do{} while(0);}
#define rr_if_down(dev)
do { } while(0)
#endif
#include "rrunner.h"
...
...
@@ -773,7 +773,7 @@ static int rr_init1(struct net_device *dev)
* Give the FirmWare time to chew on the `get running' command.
*/
myjif
=
jiffies
+
5
*
HZ
;
while
(
(
jiffies
<
myjif
)
&&
!
rrpriv
->
fw_running
);
while
(
time_before
(
jiffies
,
myjif
)
&&
!
rrpriv
->
fw_running
);
netif_start_queue
(
dev
);
...
...
drivers/net/sgiseeq.c
View file @
d46a47ea
/* $Id: sgiseeq.c,v 1.17 2000/03/27 23:02:57 ralf Exp $
*
/*
* sgiseeq.c: Seeq8003 ethernet driver for SGI machines.
*
* Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/interrupt.h>
...
...
@@ -450,20 +450,22 @@ static int sgiseeq_open(struct net_device *dev)
unsigned
long
flags
;
int
err
;
save_flags
(
flags
);
cli
();
if
(
request_irq
(
dev
->
irq
,
sgiseeq_interrupt
,
0
,
sgiseeqstr
,
(
void
*
)
dev
))
{
__save_and_cli
(
flags
);
err
=
-
EAGAIN
;
if
(
request_irq
(
dev
->
irq
,
sgiseeq_interrupt
,
0
,
sgiseeqstr
,
dev
))
{
printk
(
"Seeq8003: Can't get irq %d
\n
"
,
dev
->
irq
);
restore_flags
(
flags
);
return
-
EAGAIN
;
goto
out
;
}
err
=
init_seeq
(
dev
,
sp
,
sregs
);
if
(
err
)
return
err
;
goto
out
;
netif_start_queue
(
dev
);
restore_flags
(
flags
);
return
0
;
out:
__restore_flags
(
flags
);
return
err
;
}
static
int
sgiseeq_close
(
struct
net_device
*
dev
)
...
...
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