aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/outqueue.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-16 07:07:14 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-17 14:13:02 -0400
commitdacda32ee694d9139c336c5e1cdfb826f6296186 (patch)
treea348be2250152160e55e5a590b5e87d1b739e110 /net/sctp/outqueue.c
parent165a4c31278c980862b2c2ddec408cf30341f3ec (diff)
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:
701/* Cork the outqueue so queued chunks are really queued. */ 701/* Cork the outqueue so queued chunks are really queued. */
702int sctp_outq_uncork(struct sctp_outq *q) 702int sctp_outq_uncork(struct sctp_outq *q)
703{ 703{
704 int error = 0;
705 if (q->cork) 704 if (q->cork)
706 q->cork = 0; 705 q->cork = 0;
707 error = sctp_outq_flush(q, 0); 706
708 return error; 707 return sctp_outq_flush(q, 0);
709} 708}
710 709
711 710