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
31092e59
Commit
31092e59
authored
Sep 22, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: No need for alloc_divert_blk in Space.c
parent
f3b65b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
drivers/net/Space.c
drivers/net/Space.c
+3
-11
No files found.
drivers/net/Space.c
View file @
31092e59
...
@@ -125,22 +125,14 @@ static int __init probe_list(struct net_device *dev, struct devprobe *plist)
...
@@ -125,22 +125,14 @@ static int __init probe_list(struct net_device *dev, struct devprobe *plist)
{
{
struct
devprobe
*
p
=
plist
;
struct
devprobe
*
p
=
plist
;
unsigned
long
base_addr
=
dev
->
base_addr
;
unsigned
long
base_addr
=
dev
->
base_addr
;
int
ret
;
while
(
p
->
probe
!=
NULL
)
{
while
(
p
->
probe
!=
NULL
)
{
if
(
base_addr
&&
p
->
probe
(
dev
)
==
0
)
{
/* probe given addr */
if
(
base_addr
&&
p
->
probe
(
dev
)
==
0
)
/* probe given addr */
ret
=
alloc_divert_blk
(
dev
);
if
(
ret
)
return
ret
;
return
0
;
return
0
;
}
else
if
(
p
->
status
==
0
)
{
/* has autoprobe failed yet? */
else
if
(
p
->
status
==
0
)
{
/* has autoprobe failed yet? */
p
->
status
=
p
->
probe
(
dev
);
/* no, try autoprobe */
p
->
status
=
p
->
probe
(
dev
);
/* no, try autoprobe */
if
(
p
->
status
==
0
)
{
if
(
p
->
status
==
0
)
ret
=
alloc_divert_blk
(
dev
);
if
(
ret
)
return
ret
;
return
0
;
return
0
;
}
}
}
p
++
;
p
++
;
}
}
...
...
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