Re: [net-next PATCH 04/11] net: ravb: Combine if conditions in RX csum validation
From: Sergey Shtylyov
Date: Mon Sep 30 2024 - 13:41:41 EST
On 9/30/24 19:08, Paul Barker wrote:
> From: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
>
> We can merge the two if conditions on skb_is_nonlinear(). Since
> skb_frag_size_sub() and skb_trim() do not free memory, it is still safe
> to access the trimmed bytes at the end of the packet after these calls.
>
> Signed-off-by: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
[...]
MBR, Sergey