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
49c0bf8a
Commit
49c0bf8a
authored
Sep 20, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o LLC: use list_for_each_entry in llc_sap_find
parent
874d7485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
net/llc/llc_core.c
net/llc/llc_core.c
+5
-8
No files found.
net/llc/llc_core.c
View file @
49c0bf8a
...
...
@@ -78,17 +78,14 @@ void llc_del_sap(struct llc_sap *sap)
*/
struct
llc_sap
*
llc_sap_find
(
unsigned
char
sap_value
)
{
struct
llc_sap
*
sap
=
NULL
;
struct
list_head
*
entry
;
struct
llc_sap
*
sap
;
read_lock_bh
(
&
llc_sap_list_lock
);
list_for_each
(
entry
,
&
llc_sap_list
)
{
sap
=
list_entry
(
entry
,
struct
llc_sap
,
node
);
list_for_each_entry
(
sap
,
&
llc_sap_list
,
node
)
if
(
sap
->
laddr
.
lsap
==
sap_value
)
break
;
}
if
(
entry
==
&
llc_sap_list
)
/* not found */
sap
=
NULL
;
goto
out
;
sap
=
NULL
;
out:
read_unlock_bh
(
&
llc_sap_list_lock
);
return
sap
;
}
...
...
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