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
nexedi
linux
Commits
c8037cbe
Commit
c8037cbe
authored
Sep 03, 2003
by
Maximilian Attems
Committed by
Jeff Garzik
Sep 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Use list_for_each() where applicable.
parent
e50a1046
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+1
-1
net/core/netfilter.c
net/core/netfilter.c
+2
-2
net/ipv4/netfilter/ip_conntrack_standalone.c
net/ipv4/netfilter/ip_conntrack_standalone.c
+2
-3
net/ipv4/netfilter/ip_nat_standalone.c
net/ipv4/netfilter/ip_nat_standalone.c
+1
-1
No files found.
net/bluetooth/rfcomm/core.c
View file @
c8037cbe
...
...
@@ -1794,7 +1794,7 @@ static void *rfcomm_seq_next(struct seq_file *seq, void *e, loff_t *pos)
if
(
p
->
next
!=
&
s
->
dlcs
)
return
p
->
next
;
for
(
p
=
s
->
list
.
next
;
p
!=
&
session_list
;
p
=
p
->
nex
t
)
{
list_for_each
(
p
,
&
session_lis
t
)
{
s
=
list_entry
(
p
,
struct
rfcomm_session
,
list
);
__list_for_each
(
pp
,
&
s
->
dlcs
)
{
seq
->
private
=
s
;
...
...
net/core/netfilter.c
View file @
c8037cbe
...
...
@@ -101,7 +101,7 @@ int nf_register_sockopt(struct nf_sockopt_ops *reg)
if
(
down_interruptible
(
&
nf_sockopt_mutex
)
!=
0
)
return
-
EINTR
;
for
(
i
=
nf_sockopts
.
next
;
i
!=
&
nf_sockopts
;
i
=
i
->
next
)
{
list_for_each
(
i
,
&
nf_sockopts
)
{
struct
nf_sockopt_ops
*
ops
=
(
struct
nf_sockopt_ops
*
)
i
;
if
(
ops
->
pf
==
reg
->
pf
&&
(
overlap
(
ops
->
set_optmin
,
ops
->
set_optmax
,
...
...
@@ -296,7 +296,7 @@ static int nf_sockopt(struct sock *sk, int pf, int val,
if
(
down_interruptible
(
&
nf_sockopt_mutex
)
!=
0
)
return
-
EINTR
;
for
(
i
=
nf_sockopts
.
next
;
i
!=
&
nf_sockopts
;
i
=
i
->
next
)
{
list_for_each
(
i
,
&
nf_sockopts
)
{
ops
=
(
struct
nf_sockopt_ops
*
)
i
;
if
(
ops
->
pf
==
pf
)
{
if
(
get
)
{
...
...
net/ipv4/netfilter/ip_conntrack_standalone.c
View file @
c8037cbe
...
...
@@ -150,8 +150,7 @@ list_conntracks(char *buffer, char **start, off_t offset, int length)
}
/* Now iterate through expecteds. */
for
(
e
=
ip_conntrack_expect_list
.
next
;
e
!=
&
ip_conntrack_expect_list
;
e
=
e
->
next
)
{
list_for_each
(
e
,
&
ip_conntrack_expect_list
)
{
unsigned
int
last_len
;
struct
ip_conntrack_expect
*
expect
=
(
struct
ip_conntrack_expect
*
)
e
;
...
...
@@ -319,7 +318,7 @@ int ip_conntrack_protocol_register(struct ip_conntrack_protocol *proto)
struct
list_head
*
i
;
WRITE_LOCK
(
&
ip_conntrack_lock
);
for
(
i
=
protocol_list
.
next
;
i
!=
&
protocol_list
;
i
=
i
->
nex
t
)
{
list_for_each
(
i
,
&
protocol_lis
t
)
{
if
(((
struct
ip_conntrack_protocol
*
)
i
)
->
proto
==
proto
->
proto
)
{
ret
=
-
EBUSY
;
...
...
net/ipv4/netfilter/ip_nat_standalone.c
View file @
c8037cbe
...
...
@@ -271,7 +271,7 @@ int ip_nat_protocol_register(struct ip_nat_protocol *proto)
struct
list_head
*
i
;
WRITE_LOCK
(
&
ip_nat_lock
);
for
(
i
=
protos
.
next
;
i
!=
&
protos
;
i
=
i
->
next
)
{
list_for_each
(
i
,
&
protos
)
{
if
(((
struct
ip_nat_protocol
*
)
i
)
->
protonum
==
proto
->
protonum
)
{
ret
=
-
EBUSY
;
...
...
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