selftests/bpf: Fix missing space error
authorRoberto Valenzuela <valenzuelarober@gmail.com>
Fri, 13 Jan 2023 18:02:57 +0000 (13:02 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 13 Jan 2023 22:23:02 +0000 (14:23 -0800)
Add the missing space after 'dest' variable assignment.
This change will resolve the following checkpatch.pl
script error:

ERROR: spaces required around that '+=' (ctx:VxW)

Signed-off-by: Roberto Valenzuela <valenzuelarober@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230113180257.39769-1-valenzuelarober@gmail.com
tools/testing/selftests/bpf/progs/test_xdp_vlan.c

index 134768f6b788d52617dba9aa866184fd9f604d08..cdf3c48d6cbb8048e90f1b5d362115b163d72da2 100644 (file)
@@ -195,7 +195,7 @@ int  xdp_prognum2(struct xdp_md *ctx)
 
        /* Moving Ethernet header, dest overlap with src, memmove handle this */
        dest = data;
-       dest+= VLAN_HDR_SZ;
+       dest += VLAN_HDR_SZ;
        /*
         * Notice: Taking over vlan_hdr->h_vlan_encapsulated_proto, by
         * only moving two MAC addrs (12 bytes), not overwriting last 2 bytes