summaryrefslogtreecommitdiff
path: root/astraceroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'astraceroute.c')
-rw-r--r--astraceroute.c2
1 files changed, 0 insertions, 2 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("]");
kdep/include parent040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/lockdep/include')