diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-16 11:07:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-17 14:13:02 -0400 |
commit | dacda32ee694d9139c336c5e1cdfb826f6296186 (patch) | |
tree | a348be2250152160e55e5a590b5e87d1b739e110 | |
parent | 165a4c31278c980862b2c2ddec408cf30341f3ec (diff) | |
download | op-kernel-dev-dacda32ee694d9139c336c5e1cdfb826f6296186.zip op-kernel-dev-dacda32ee694d9139c336c5e1cdfb826f6296186.tar.gz |
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>
-rw-r--r-- | net/sctp/outqueue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index d4c137e..32a4625 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); } |