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>
This commit is contained in:
parent
165a4c3127
commit
dacda32ee6
1 changed files with 2 additions and 3 deletions
|
@ -701,11 +701,10 @@ redo:
|
||||||
/* Cork the outqueue so queued chunks are really queued. */
|
/* Cork the outqueue so queued chunks are really queued. */
|
||||||
int sctp_outq_uncork(struct sctp_outq *q)
|
int sctp_outq_uncork(struct sctp_outq *q)
|
||||||
{
|
{
|
||||||
int error = 0;
|
|
||||||
if (q->cork)
|
if (q->cork)
|
||||||
q->cork = 0;
|
q->cork = 0;
|
||||||
error = sctp_outq_flush(q, 0);
|
|
||||||
return error;
|
return sctp_outq_flush(q, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue