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
efa41584
Commit
efa41584
authored
Jul 01, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove bogus variables from syncppp.[ch]
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
86f584f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
drivers/net/wan/syncppp.c
drivers/net/wan/syncppp.c
+0
-9
include/net/syncppp.h
include/net/syncppp.h
+0
-2
No files found.
drivers/net/wan/syncppp.c
View file @
efa41584
...
...
@@ -230,13 +230,6 @@ static void sppp_input (struct net_device *dev, struct sk_buff *skb)
skb
->
dev
=
dev
;
skb_reset_mac_header
(
skb
);
if
(
dev
->
flags
&
IFF_RUNNING
)
{
/* Count received bytes, add FCS and one flag */
sp
->
ibytes
+=
skb
->
len
+
3
;
sp
->
ipkts
++
;
}
if
(
!
pskb_may_pull
(
skb
,
PPP_HEADER_LEN
))
{
/* Too small packet, drop it. */
if
(
sp
->
pp_flags
&
PP_DEBUG
)
...
...
@@ -832,7 +825,6 @@ static void sppp_cp_send (struct sppp *sp, u16 proto, u8 type,
sppp_print_bytes
((
u8
*
)
(
lh
+
1
),
len
);
printk
(
">
\n
"
);
}
sp
->
obytes
+=
skb
->
len
;
/* Control is high priority so it doesn't get queued behind data */
skb
->
priority
=
TC_PRIO_CONTROL
;
skb
->
dev
=
dev
;
...
...
@@ -875,7 +867,6 @@ static void sppp_cisco_send (struct sppp *sp, int type, u32 par1, u32 par2)
printk
(
KERN_WARNING
"%s: cisco output: <%xh %xh %xh %xh %xh-%xh>
\n
"
,
dev
->
name
,
ntohl
(
ch
->
type
),
ch
->
par1
,
ch
->
par2
,
ch
->
rel
,
ch
->
time0
,
ch
->
time1
);
sp
->
obytes
+=
skb
->
len
;
skb
->
priority
=
TC_PRIO_CONTROL
;
skb
->
dev
=
dev
;
skb_queue_tail
(
&
tx_queue
,
skb
);
...
...
include/net/syncppp.h
View file @
efa41584
...
...
@@ -43,8 +43,6 @@ struct sppp
u32
pp_rseq
;
/* remote sequence number */
struct
slcp
lcp
;
/* LCP params */
struct
sipcp
ipcp
;
/* IPCP params */
u32
ibytes
,
obytes
;
/* Bytes in/out */
u32
ipkts
,
opkts
;
/* Packets in/out */
struct
timer_list
pp_timer
;
struct
net_device
*
pp_if
;
char
pp_link_state
;
/* Link status */
...
...
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