selftests: bpf: remove duplicate .flags initialization in ctx_skb.c
authorStanislav Fomichev <sdf@google.com>
Tue, 2 Apr 2019 17:08:35 +0000 (10:08 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Apr 2019 21:17:18 +0000 (23:17 +0200)
verifier/ctx_skb.c:708:11: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
        .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/verifier/ctx_skb.c

index c660deb582f169b117a24685d429230dc847521d..b0fda2877119c4af08277bd0f329f238c193313c 100644 (file)
        .errstr = "invalid bpf_context access",
        .result = REJECT,
        .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
-       .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
 },
 {
        "check cb access: half, wrong type",