summaryrefslogtreecommitdiffstats
path: root/net/sctp/outqueue.c
diff options
context:
space:
mode:
authorDaniel Borkmann2013-04-16 13:07:14 +0200
committerDavid S. Miller2013-04-17 20:13:02 +0200
commitdacda32ee694d9139c336c5e1cdfb826f6296186 (patch)
treea348be2250152160e55e5a590b5e87d1b739e110 /net/sctp/outqueue.c
parentnet: sctp: sctp_outq: remove 'malloced' from its struct (diff)
downloadkernel-qcow2-linux-dacda32ee694d9139c336c5e1cdfb826f6296186.tar.gz
kernel-qcow2-linux-dacda32ee694d9139c336c5e1cdfb826f6296186.tar.xz
kernel-qcow2-linux-dacda32ee694d9139c336c5e1cdfb826f6296186.zip
net: sctp: outqueue: simplify sctp_outq_uncork function
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>
Diffstat (limited to 'net/sctp/outqueue.c')
-rw-r--r--net/sctp/outqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index d4c137e1ab85..32a4625fef77 100644
--- 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);
}