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
194a90fd
Commit
194a90fd
authored
Apr 03, 2002
by
Christopher Goldfarb
Committed by
Jeff Garzik
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1000 net drvr update 6/13:
Replace LIST_LEN macro use with the standard ARRAY_SIZE.
parent
463d1c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/net/e1000/e1000_param.c
drivers/net/e1000/e1000_param.c
+4
-6
No files found.
drivers/net/e1000/e1000_param.c
View file @
194a90fd
...
...
@@ -319,8 +319,6 @@ e1000_validate_option(int *value, struct e1000_option *opt)
return
-
1
;
}
#define LIST_LEN(l) (sizeof(l) / sizeof(l[0]))
static
void
e1000_check_fiber_options
(
struct
e1000_adapter
*
adapter
);
static
void
e1000_check_copper_options
(
struct
e1000_adapter
*
adapter
);
...
...
@@ -403,7 +401,7 @@ e1000_check_options(struct e1000_adapter *adapter)
name:
"Flow Control"
,
err:
"reading default settings from EEPROM"
,
def:
e1000_fc_default
,
arg:
{
l
:
{
nr
:
LIST_LEN
(
fc_list
),
p
:
fc_list
}}
arg:
{
l
:
{
nr
:
ARRAY_SIZE
(
fc_list
),
p
:
fc_list
}}
};
int
fc
=
FlowControl
[
bd
];
...
...
@@ -489,7 +487,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
name:
"Speed"
,
err:
"parameter ignored"
,
def:
0
,
arg:
{
l
:
{
nr
:
LIST_LEN
(
speed_list
),
p
:
speed_list
}}
arg:
{
l
:
{
nr
:
ARRAY_SIZE
(
speed_list
),
p
:
speed_list
}}
};
speed
=
Speed
[
bd
];
...
...
@@ -504,7 +502,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
name:
"Duplex"
,
err:
"parameter ignored"
,
def:
0
,
arg:
{
l
:
{
nr
:
LIST_LEN
(
dplx_list
),
p
:
dplx_list
}}
arg:
{
l
:
{
nr
:
ARRAY_SIZE
(
dplx_list
),
p
:
dplx_list
}}
};
dplx
=
Duplex
[
bd
];
...
...
@@ -556,7 +554,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
name:
"Autoneg"
,
err:
"parameter ignored"
,
def:
AUTONEG_ADV_DEFAULT
,
arg:
{
l
:
{
nr
:
LIST_LEN
(
an_list
),
p
:
an_list
}}
arg:
{
l
:
{
nr
:
ARRAY_SIZE
(
an_list
),
p
:
an_list
}}
};
int
an
=
AutoNeg
[
bd
];
...
...
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