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
6befa2af
Commit
6befa2af
authored
Sep 27, 2002
by
Arnaldo Carvalho de Melo
Committed by
Arnaldo Carvalho de Melo
Sep 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o LLC: remove unused list_head from llc_opt & use rw_lock_init for rwlocks
parent
44bb970a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
include/net/llc_conn.h
include/net/llc_conn.h
+0
-1
net/llc/llc_main.c
net/llc/llc_main.c
+2
-2
No files found.
include/net/llc_conn.h
View file @
6befa2af
...
...
@@ -21,7 +21,6 @@ struct llc_timer {
};
struct
llc_opt
{
struct
list_head
node
;
/* entry in sap->sk_list.list */
struct
sock
*
sk
;
/* sock that has this llc_opt */
struct
sockaddr_llc
addr
;
/* address sock is bound to */
u8
state
;
/* state of connection */
...
...
net/llc/llc_main.c
View file @
6befa2af
...
...
@@ -70,7 +70,7 @@ struct llc_sap *llc_sap_alloc(void)
memset
(
sap
,
0
,
sizeof
(
*
sap
));
sap
->
state
=
LLC_SAP_STATE_ACTIVE
;
memcpy
(
sap
->
laddr
.
mac
,
llc_main_station
.
mac_sa
,
ETH_ALEN
);
spin_
lock_init
(
&
sap
->
sk_list
.
lock
);
rw
lock_init
(
&
sap
->
sk_list
.
lock
);
}
return
sap
;
}
...
...
@@ -639,7 +639,7 @@ static int __init llc_init(void)
printk
(
llc_banner
);
INIT_LIST_HEAD
(
&
llc_main_station
.
sap_list
.
list
);
spin_
lock_init
(
&
llc_main_station
.
sap_list
.
lock
);
rw
lock_init
(
&
llc_main_station
.
sap_list
.
lock
);
skb_queue_head_init
(
&
llc_main_station
.
mac_pdu_q
);
skb_queue_head_init
(
&
llc_main_station
.
ev_q
.
list
);
spin_lock_init
(
&
llc_main_station
.
ev_q
.
lock
);
...
...
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