diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-03-16 17:11:11 +0100 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-03-16 17:11:11 +0100 |
commit | 3211183734562908e4f250cc2dd1a177e3c170b1 (patch) | |
tree | d4ea7033b33b12ff6b34eb7089d2a5e33bfeec53 | |
parent | 99c9e3033abe511190bcf86c9d7578c6d8026b85 (diff) |
misc: remove dead/unreachable code from switch statements
Remove various unreachable sections from the switch statements. This
was detected by the coverty scanner.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r-- | astraceroute.c | 2 | ||||
-rw-r--r-- | bpf.c | 2 | ||||
-rw-r--r-- | ifpps.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/astraceroute.c b/astraceroute.c index 9919744..76b0818 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -782,8 +782,6 @@ static int __process_time(struct ctx *ctx, int fd, int fd_cap, int ttl, printf("%lu sec ", tmp[idx].tv_sec); printf("%7lu us", tmp[idx].tv_usec); break; - default: - bug(); } printf("]"); @@ -505,8 +505,6 @@ int __bpf_validate(const struct sock_fprog *bpf) break; case BPF_MISC: break; - default: - return 0; } } @@ -271,8 +271,6 @@ static int stats_proc_softirqs(struct ifstat *stats) case softirqs_net_rx: stats->irqs_srx[i] = strtol(ptr, &ptr, 10); break; - default: - bug(); } } |