diff options
author | 2022-08-17 12:54:44 -0700 | |
---|---|---|
committer | 2022-08-18 11:04:56 -0700 | |
commit | a8688821f3854f37fe0198b8945f9cfc051ab2cf (patch) | |
tree | 3e166b8c8d792283d7f4ce6bbc2354591387f5d8 /scripts/generate_rust_analyzer.py | |
parent | tcp: fix tcp_cleanup_rbuf() for tcp_read_skb() (diff) | |
download | wireguard-linux-a8688821f3854f37fe0198b8945f9cfc051ab2cf.tar.xz wireguard-linux-a8688821f3854f37fe0198b8945f9cfc051ab2cf.zip |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions