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
8b14a536
Commit
8b14a536
authored
Sep 16, 2007
by
Denis Cheng
Committed by
David S. Miller
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: all net/ cleanup with ARRAY_SIZE
Signed-off-by:
Denis Cheng
<
crquan@gmail.com
>
parent
c40f6fff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
net/atm/proc.c
net/atm/proc.c
+1
-1
net/decnet/dn_dev.c
net/decnet/dn_dev.c
+1
-1
No files found.
net/atm/proc.c
View file @
8b14a536
...
@@ -176,7 +176,7 @@ static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc)
...
@@ -176,7 +176,7 @@ static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc)
seq_printf
(
seq
,
"%3d %3d %5d %-3s %7d %-5s %7d %-6s"
,
seq_printf
(
seq
,
"%3d %3d %5d %-3s %7d %-5s %7d %-6s"
,
vcc
->
dev
->
number
,
vcc
->
vpi
,
vcc
->
vci
,
vcc
->
dev
->
number
,
vcc
->
vpi
,
vcc
->
vci
,
vcc
->
qos
.
aal
>=
sizeof
(
aal_name
)
/
sizeof
(
aal_name
[
0
]
)
?
"err"
:
vcc
->
qos
.
aal
>=
ARRAY_SIZE
(
aal_name
)
?
"err"
:
aal_name
[
vcc
->
qos
.
aal
],
vcc
->
qos
.
rxtp
.
min_pcr
,
aal_name
[
vcc
->
qos
.
aal
],
vcc
->
qos
.
rxtp
.
min_pcr
,
class_name
[
vcc
->
qos
.
rxtp
.
traffic_class
],
vcc
->
qos
.
txtp
.
min_pcr
,
class_name
[
vcc
->
qos
.
rxtp
.
traffic_class
],
vcc
->
qos
.
txtp
.
min_pcr
,
class_name
[
vcc
->
qos
.
txtp
.
traffic_class
]);
class_name
[
vcc
->
qos
.
txtp
.
traffic_class
]);
...
...
net/decnet/dn_dev.c
View file @
8b14a536
...
@@ -150,7 +150,7 @@ static struct dn_dev_parms dn_dev_list[] = {
...
@@ -150,7 +150,7 @@ static struct dn_dev_parms dn_dev_list[] = {
}
}
};
};
#define DN_DEV_LIST_SIZE
(sizeof(dn_dev_list)/sizeof(struct dn_dev_parms)
)
#define DN_DEV_LIST_SIZE
ARRAY_SIZE(dn_dev_list
)
#define DN_DEV_PARMS_OFFSET(x) ((int) ((char *) &((struct dn_dev_parms *)0)->x))
#define DN_DEV_PARMS_OFFSET(x) ((int) ((char *) &((struct dn_dev_parms *)0)->x))
...
...
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