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
3a14676f
Commit
3a14676f
authored
Jun 26, 2004
by
Chas Williams
Committed by
David S. Miller
Jun 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: fix sparse checker warnings (by Stephen Hemminger <shemminger@osdl.org>)
parent
4bddee2c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
net/atm/br2684.c
net/atm/br2684.c
+1
-1
net/atm/clip.c
net/atm/clip.c
+1
-1
net/atm/common.c
net/atm/common.c
+1
-1
net/atm/lec.c
net/atm/lec.c
+3
-3
net/atm/svc.c
net/atm/svc.c
+1
-1
No files found.
net/atm/br2684.c
View file @
3a14676f
...
@@ -558,7 +558,7 @@ Note: we do not have explicit unassign, but look at _push()
...
@@ -558,7 +558,7 @@ Note: we do not have explicit unassign, but look at _push()
atmvcc
->
push
=
br2684_push
;
atmvcc
->
push
=
br2684_push
;
skb_queue_head_init
(
&
copy
);
skb_queue_head_init
(
&
copy
);
skb_migrate
(
&
atmvcc
->
sk
->
sk_receive_queue
,
&
copy
);
skb_migrate
(
&
atmvcc
->
sk
->
sk_receive_queue
,
&
copy
);
while
((
skb
=
skb_dequeue
(
&
copy
)))
{
while
((
skb
=
skb_dequeue
(
&
copy
))
!=
NULL
)
{
BRPRIV
(
skb
->
dev
)
->
stats
.
rx_bytes
-=
skb
->
len
;
BRPRIV
(
skb
->
dev
)
->
stats
.
rx_bytes
-=
skb
->
len
;
BRPRIV
(
skb
->
dev
)
->
stats
.
rx_packets
--
;
BRPRIV
(
skb
->
dev
)
->
stats
.
rx_packets
--
;
br2684_push
(
atmvcc
,
skb
);
br2684_push
(
atmvcc
,
skb
);
...
...
net/atm/clip.c
View file @
3a14676f
...
@@ -503,7 +503,7 @@ static int clip_mkip(struct atm_vcc *vcc,int timeout)
...
@@ -503,7 +503,7 @@ static int clip_mkip(struct atm_vcc *vcc,int timeout)
skb_queue_head_init
(
&
copy
);
skb_queue_head_init
(
&
copy
);
skb_migrate
(
&
vcc
->
sk
->
sk_receive_queue
,
&
copy
);
skb_migrate
(
&
vcc
->
sk
->
sk_receive_queue
,
&
copy
);
/* re-process everything received between connection setup and MKIP */
/* re-process everything received between connection setup and MKIP */
while
((
skb
=
skb_dequeue
(
&
copy
)))
while
((
skb
=
skb_dequeue
(
&
copy
))
!=
NULL
)
if
(
!
clip_devs
)
{
if
(
!
clip_devs
)
{
atm_return
(
vcc
,
skb
->
truesize
);
atm_return
(
vcc
,
skb
->
truesize
);
kfree_skb
(
skb
);
kfree_skb
(
skb
);
...
...
net/atm/common.c
View file @
3a14676f
...
@@ -187,7 +187,7 @@ static void vcc_destroy_socket(struct sock *sk)
...
@@ -187,7 +187,7 @@ static void vcc_destroy_socket(struct sock *sk)
vcc_remove_socket
(
sk
);
/* no more receive */
vcc_remove_socket
(
sk
);
/* no more receive */
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
)))
{
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
))
!=
NULL
)
{
atm_return
(
vcc
,
skb
->
truesize
);
atm_return
(
vcc
,
skb
->
truesize
);
kfree_skb
(
skb
);
kfree_skb
(
skb
);
}
}
...
...
net/atm/lec.c
View file @
3a14676f
...
@@ -567,7 +567,7 @@ lec_atm_close(struct atm_vcc *vcc)
...
@@ -567,7 +567,7 @@ lec_atm_close(struct atm_vcc *vcc)
if
(
skb_peek
(
&
vcc
->
sk
->
sk_receive_queue
))
if
(
skb_peek
(
&
vcc
->
sk
->
sk_receive_queue
))
printk
(
"%s lec_atm_close: closing with messages pending
\n
"
,
printk
(
"%s lec_atm_close: closing with messages pending
\n
"
,
dev
->
name
);
dev
->
name
);
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
)))
{
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
))
!=
NULL
)
{
atm_return
(
vcc
,
skb
->
truesize
);
atm_return
(
vcc
,
skb
->
truesize
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
(
skb
);
}
}
...
@@ -1940,7 +1940,7 @@ lec_arp_check_expire(unsigned long data)
...
@@ -1940,7 +1940,7 @@ lec_arp_check_expire(unsigned long data)
priv
->
path_switching_delay
))
{
priv
->
path_switching_delay
))
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
while
((
skb
=
skb_dequeue
(
&
entry
->
tx_wait
)))
while
((
skb
=
skb_dequeue
(
&
entry
->
tx_wait
))
!=
NULL
)
lec_send
(
entry
->
vcc
,
skb
,
entry
->
priv
);
lec_send
(
entry
->
vcc
,
skb
,
entry
->
priv
);
entry
->
last_used
=
jiffies
;
entry
->
last_used
=
jiffies
;
entry
->
status
=
entry
->
status
=
...
@@ -2337,7 +2337,7 @@ lec_flush_complete(struct lec_priv *priv, unsigned long tran_id)
...
@@ -2337,7 +2337,7 @@ lec_flush_complete(struct lec_priv *priv, unsigned long tran_id)
entry
->
status
==
ESI_FLUSH_PENDING
)
{
entry
->
status
==
ESI_FLUSH_PENDING
)
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
while
((
skb
=
skb_dequeue
(
&
entry
->
tx_wait
)))
while
((
skb
=
skb_dequeue
(
&
entry
->
tx_wait
))
!=
NULL
)
lec_send
(
entry
->
vcc
,
skb
,
entry
->
priv
);
lec_send
(
entry
->
vcc
,
skb
,
entry
->
priv
);
entry
->
status
=
ESI_FORWARD_DIRECT
;
entry
->
status
=
ESI_FORWARD_DIRECT
;
DPRINTK
(
"LEC_ARP: Flushed
\n
"
);
DPRINTK
(
"LEC_ARP: Flushed
\n
"
);
...
...
net/atm/svc.c
View file @
3a14676f
...
@@ -66,7 +66,7 @@ static void svc_disconnect(struct atm_vcc *vcc)
...
@@ -66,7 +66,7 @@ static void svc_disconnect(struct atm_vcc *vcc)
}
}
/* beware - socket is still in use by atmsigd until the last
/* beware - socket is still in use by atmsigd until the last
as_indicate has been answered */
as_indicate has been answered */
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
)))
{
while
((
skb
=
skb_dequeue
(
&
vcc
->
sk
->
sk_receive_queue
))
!=
NULL
)
{
DPRINTK
(
"LISTEN REL
\n
"
);
DPRINTK
(
"LISTEN REL
\n
"
);
sigd_enq2
(
NULL
,
as_reject
,
vcc
,
NULL
,
NULL
,
&
vcc
->
qos
,
0
);
sigd_enq2
(
NULL
,
as_reject
,
vcc
,
NULL
,
NULL
,
&
vcc
->
qos
,
0
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
(
skb
);
...
...
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