diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-16 13:07:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-17 20:13:02 +0200 |
commit | dacda32ee694d9139c336c5e1cdfb826f6296186 (patch) | |
tree | a348be2250152160e55e5a590b5e87d1b739e110 /net/sctp | |
parent | net: sctp: sctp_outq: remove 'malloced' from its struct (diff) | |
download | linux-dacda32ee694d9139c336c5e1cdfb826f6296186.tar.xz 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')
-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 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); } |