diff options
author | Wei Tang <tangwei@cmss.chinamobile.com> | 2016-02-04 04:36:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-11 04:24:45 -0500 |
commit | 1490d2bd1bbcf9ad127f7764b7f28b26a55e011b (patch) | |
tree | 7738b41d3b87d442e1c2c3727f054ec0ad681819 /tools/net | |
parent | dc599f76c22b0de55a2a9141dfe52e70b32a1194 (diff) |
bpf_dbg: do not initialise statics to 0
This patch fixes the checkpatch.pl error to bpf_dbg.c:
ERROR: do not initialise statics to 0
Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/net')
-rw-r--r-- | tools/net/bpf_dbg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/net/bpf_dbg.c b/tools/net/bpf_dbg.c index 9a287bec695a..4f254bcc4423 100644 --- a/tools/net/bpf_dbg.c +++ b/tools/net/bpf_dbg.c | |||
@@ -129,16 +129,16 @@ struct bpf_regs { | |||
129 | }; | 129 | }; |
130 | 130 | ||
131 | static struct sock_filter bpf_image[BPF_MAXINSNS + 1]; | 131 | static struct sock_filter bpf_image[BPF_MAXINSNS + 1]; |
132 | static unsigned int bpf_prog_len = 0; | 132 | static unsigned int bpf_prog_len; |
133 | 133 | ||
134 | static int bpf_breakpoints[64]; | 134 | static int bpf_breakpoints[64]; |
135 | static struct bpf_regs bpf_regs[BPF_MAXINSNS + 1]; | 135 | static struct bpf_regs bpf_regs[BPF_MAXINSNS + 1]; |
136 | static struct bpf_regs bpf_curr; | 136 | static struct bpf_regs bpf_curr; |
137 | static unsigned int bpf_regs_len = 0; | 137 | static unsigned int bpf_regs_len; |
138 | 138 | ||
139 | static int pcap_fd = -1; | 139 | static int pcap_fd = -1; |
140 | static unsigned int pcap_packet = 0; | 140 | static unsigned int pcap_packet; |
141 | static size_t pcap_map_size = 0; | 141 | static size_t pcap_map_size; |
142 | static char *pcap_ptr_va_start, *pcap_ptr_va_curr; | 142 | static char *pcap_ptr_va_start, *pcap_ptr_va_curr; |
143 | 143 | ||
144 | static const char * const op_table[] = { | 144 | static const char * const op_table[] = { |
@@ -1172,7 +1172,7 @@ static int cmd_breakpoint(char *subcmd) | |||
1172 | 1172 | ||
1173 | static int cmd_run(char *num) | 1173 | static int cmd_run(char *num) |
1174 | { | 1174 | { |
1175 | static uint32_t pass = 0, fail = 0; | 1175 | static uint32_t pass, fail; |
1176 | bool has_limit = true; | 1176 | bool has_limit = true; |
1177 | int pkts = 0, i = 0; | 1177 | int pkts = 0, i = 0; |
1178 | 1178 | ||