tools: Remove unused struct id_t definition in tcpstates
The tool tcpstates contains a struct id_t definition but not
referenced, remove it.
@@ -102,12 +102,8 @@ struct ipv6_data_t {
char task[TASK_COMM_LEN];
};
BPF_PERF_OUTPUT(ipv6_events);
-
-struct id_t {
- u32 pid;
- char task[TASK_COMM_LEN];
-};
"""
+
bpf_text_tracepoint = """
TRACEPOINT_PROBE(sock, inet_sock_set_state)
{
@@ -252,7 +248,7 @@ int kprobe__tcp_set_state(struct pt_regs *ctx, struct sock *sk, int state)
"""
bpf_text = bpf_header
-if (BPF.tracepoint_exists("sock", "inet_sock_set_state")):
+if BPF.tracepoint_exists("sock", "inet_sock_set_state"):
bpf_text += bpf_text_tracepoint
else:
bpf_text += bpf_text_kprobe
