Skip to content

Commit

Permalink
bpf_dbg: do not initialise statics to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Tang authored and David S. Miller committed Feb 11, 2016
1 parent dc599f7 commit 1490d2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/net/bpf_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ struct bpf_regs {
};

static struct sock_filter bpf_image[BPF_MAXINSNS + 1];
static unsigned int bpf_prog_len = 0;
static unsigned int bpf_prog_len;

static int bpf_breakpoints[64];
static struct bpf_regs bpf_regs[BPF_MAXINSNS + 1];
static struct bpf_regs bpf_curr;
static unsigned int bpf_regs_len = 0;
static unsigned int bpf_regs_len;

static int pcap_fd = -1;
static unsigned int pcap_packet = 0;
static size_t pcap_map_size = 0;
static unsigned int pcap_packet;
static size_t pcap_map_size;
static char *pcap_ptr_va_start, *pcap_ptr_va_curr;

static const char * const op_table[] = {
Expand Down Expand Up @@ -1172,7 +1172,7 @@ static int cmd_breakpoint(char *subcmd)

static int cmd_run(char *num)
{
static uint32_t pass = 0, fail = 0;
static uint32_t pass, fail;
bool has_limit = true;
int pkts = 0, i = 0;

Expand Down

0 comments on commit 1490d2b

Please sign in to comment.