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
f1b68d4b
Commit
f1b68d4b
authored
Mar 30, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silicom: get_bypass_slave_pfs() open-codes lookup_port()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fb8004d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
drivers/staging/silicom/bp_mod.c
drivers/staging/silicom/bp_mod.c
+2
-25
No files found.
drivers/staging/silicom/bp_mod.c
View file @
f1b68d4b
...
@@ -7436,33 +7436,10 @@ get_bypass_slave_pfs(char *page, char **start, off_t off, int count,
...
@@ -7436,33 +7436,10 @@ get_bypass_slave_pfs(char *page, char **start, off_t off, int count,
bpctl_dev_t
*
pbp_device_block
=
(
bpctl_dev_t
*
)
data
;
bpctl_dev_t
*
pbp_device_block
=
(
bpctl_dev_t
*
)
data
;
int
len
=
0
;
int
len
=
0
;
bpctl_dev_t
*
pbp_device_block_slave
=
NULL
;
bpctl_dev_t
*
pbp_device_block_slave
=
get_status_port_fn
(
pbp_device_block
);
int
idx_dev
=
0
;
struct
net_device
*
net_slave_dev
=
NULL
;
struct
net_device
*
net_slave_dev
=
NULL
;
if
((
pbp_device_block
->
func
==
0
)
||
(
pbp_device_block
->
func
==
2
))
{
if
(
!
pbp_device_block_slave
)
for
(
idx_dev
=
0
;
((
bpctl_dev_arr
[
idx_dev
].
pdev
!=
NULL
)
&&
(
idx_dev
<
device_num
));
idx_dev
++
)
{
if
((
bpctl_dev_arr
[
idx_dev
].
bus
==
pbp_device_block
->
bus
)
&&
(
bpctl_dev_arr
[
idx_dev
].
slot
==
pbp_device_block
->
slot
))
{
if
((
pbp_device_block
->
func
==
0
)
&&
(
bpctl_dev_arr
[
idx_dev
].
func
==
1
))
{
pbp_device_block_slave
=
&
bpctl_dev_arr
[
idx_dev
];
break
;
}
if
((
pbp_device_block
->
func
==
2
)
&&
(
bpctl_dev_arr
[
idx_dev
].
func
==
3
))
{
pbp_device_block_slave
=
&
bpctl_dev_arr
[
idx_dev
];
break
;
}
}
}
}
else
pbp_device_block_slave
=
pbp_device_block
;
pbp_device_block_slave
=
pbp_device_block
;
if
(
!
pbp_device_block_slave
)
{
if
(
!
pbp_device_block_slave
)
{
len
=
sprintf
(
page
,
"fail
\n
"
);
len
=
sprintf
(
page
,
"fail
\n
"
);
...
...
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