summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2018-05-14 19:34:43 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-15 04:57:15 +0200
commit4fdbb0efb9de51295071fdf968d476c1f0605d21 (patch)
tree97b8c17a71566857c739a0519dbbb8cafbc902e9 /net/bluetooth
parentsctp: make use of gfp on retransmissions (diff)
downloadlinux-4fdbb0efb9de51295071fdf968d476c1f0605d21.tar.xz
linux-4fdbb0efb9de51295071fdf968d476c1f0605d21.zip
sctp: rework switch cases in sctp_outq_flush_data
Remove an inner one, which tended to be error prone due to the cascading and it can be replaced by a simple if (). Rework the outer one so that the actual flush code is not inside it. Now we first validate if we can or cannot send data, return if not, and then the flush code. Suggested-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions