Skip to content

Commit dacda32

Browse files
Daniel Borkmanndavem330
authored andcommitted
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 <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 165a4c3 commit dacda32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/sctp/outqueue.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,11 +701,10 @@ static int sctp_outq_flush_rtx(struct sctp_outq *q, struct sctp_packet *pkt,
701701
/* Cork the outqueue so queued chunks are really queued. */
702702
int sctp_outq_uncork(struct sctp_outq *q)
703703
{
704-
int error = 0;
705704
if (q->cork)
706705
q->cork = 0;
707-
error = sctp_outq_flush(q, 0);
708-
return error;
706+
707+
return sctp_outq_flush(q, 0);
709708
}
710709

711710

0 commit comments

Comments
 (0)