Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
96399487
Commit
96399487
authored
Jun 23, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET] sunhme: Kill useless loop over sdevs in quattro_sbus_find().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
c0442209
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
drivers/net/sunhme.c
drivers/net/sunhme.c
+0
-14
No files found.
drivers/net/sunhme.c
View file @
96399487
...
...
@@ -2568,14 +2568,10 @@ static void __init quattro_apply_ranges(struct quattro *qp, struct happy_meal *h
*/
static
struct
quattro
*
__init
quattro_sbus_find
(
struct
sbus_dev
*
goal_sdev
)
{
struct
sbus_bus
*
sbus
;
struct
sbus_dev
*
sdev
;
struct
quattro
*
qp
;
int
i
;
if
(
qfe_sbus_list
==
NULL
)
goto
found
;
for
(
qp
=
qfe_sbus_list
;
qp
!=
NULL
;
qp
=
qp
->
next
)
{
for
(
i
=
0
,
sdev
=
qp
->
quattro_dev
;
(
sdev
!=
NULL
)
&&
(
i
<
4
);
...
...
@@ -2584,17 +2580,7 @@ static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev)
return
qp
;
}
}
for_each_sbus
(
sbus
)
{
for_each_sbusdev
(
sdev
,
sbus
)
{
if
(
sdev
==
goal_sdev
)
goto
found
;
}
}
/* Cannot find quattro parent, fail. */
return
NULL
;
found:
qp
=
kmalloc
(
sizeof
(
struct
quattro
),
GFP_KERNEL
);
if
(
qp
!=
NULL
)
{
int
i
;
...
...
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