Commit dacda32ee694d9139c336c5e1cdfb826f6296186
Committed by
David S. Miller
1 parent
165a4c3127
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
net/sctp/outqueue.c
... | ... | @@ -701,11 +701,10 @@ |
701 | 701 | /* Cork the outqueue so queued chunks are really queued. */ |
702 | 702 | int sctp_outq_uncork(struct sctp_outq *q) |
703 | 703 | { |
704 | - int error = 0; | |
705 | 704 | if (q->cork) |
706 | 705 | q->cork = 0; |
707 | - error = sctp_outq_flush(q, 0); | |
708 | - return error; | |
706 | + | |
707 | + return sctp_outq_flush(q, 0); | |
709 | 708 | } |
710 | 709 | |
711 | 710 |