projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165a4c3
)
net: sctp: outqueue: simplify sctp_outq_uncork function
author
Daniel Borkmann
<dborkman@redhat.com>
Tue, 16 Apr 2013 11:07:14 +0000
(11:07 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 17 Apr 2013 18:13:02 +0000
(14:13 -0400)
Just a minor edit to simplify the function. No need for this
error variable here.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/outqueue.c
b/net/sctp/outqueue.c
index d4c137e1ab856efe740d7a6b2ed973dc6a30c7a9..32a4625fef7798f782859f3e9f6bda2979235dd9 100644
(file)
--- a/
net/sctp/outqueue.c
+++ b/
net/sctp/outqueue.c
@@
-701,11
+701,10
@@
redo:
/* Cork the outqueue so queued chunks are really queued. */
int sctp_outq_uncork(struct sctp_outq *q)
{
- int error = 0;
if (q->cork)
q->cork = 0;
- error = sctp_outq_flush(q, 0);
- return
error
;
+
+ return
sctp_outq_flush(q, 0)
;
}