diff options
author | Cong Wang <cong.wang@bytedance.com> | 2022-08-17 12:54:44 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-18 11:04:56 -0700 |
commit | a8688821f3854f37fe0198b8945f9cfc051ab2cf (patch) | |
tree | 3e166b8c8d792283d7f4ce6bbc2354591387f5d8 /net/core/skmsg.c | |
parent | c457985aaa92e1fda2ce837cabf90bf687b92dcb (diff) |
tcp: refactor tcp_read_skb() a bit
As tcp_read_skb() only reads one skb at a time, the while loop is
unnecessary, we can turn it into an if. This also simplifies the
code logic.
Cc: Eric Dumazet <edumazet@google.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/skmsg.c')
0 files changed, 0 insertions, 0 deletions