[PATCH v3 7/7] ip_frag: fix whitespace

Konstantin Ananyev konstantin.v.ananyev at yandex.ru
Sun Jan 22 17:00:50 CET 2023


17/01/2023 00:14, Stephen Hemminger пишет:
> The style standard is to use blank after keywords.
> I.e "if (" not "if("
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>   lib/ip_frag/rte_ipv4_reassembly.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/ip_frag/rte_ipv4_reassembly.c b/lib/ip_frag/rte_ipv4_reassembly.c
> index 4a89a5f5365a..88ee0aa63f62 100644
> --- a/lib/ip_frag/rte_ipv4_reassembly.c
> +++ b/lib/ip_frag/rte_ipv4_reassembly.c
> @@ -34,7 +34,7 @@ ipv4_frag_reassemble(struct ip_frag_pkt *fp)
>   		for (i = n; i != IP_FIRST_FRAG_IDX && ofs != first_len; i--) {
>   
>   			/* previous fragment found. */
> -			if(fp->frags[i].ofs + fp->frags[i].len == ofs) {
> +			if (fp->frags[i].ofs + fp->frags[i].len == ofs) {
>   
>   				RTE_ASSERT(curr_idx != i);
>   

Acked-by: Konstantin Ananyev <konstantin.v.ananyev at yandex.ru>


More information about the dev mailing list