From: Vincent Bernat Date: Fri, 22 Nov 2013 22:31:10 +0000 (+0100) Subject: coverity: remove dead code X-Git-Tag: 0.7.8~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39d78d567ddf7e1e45a6700af4df39e189bae168;p=thirdparty%2Flldpd.git coverity: remove dead code Possible values for `tlv_subtype` were already checked. The default case is not possible. --- diff --git a/src/daemon/lldp.c b/src/daemon/lldp.c index 3d60563b..f6730559 100644 --- a/src/daemon/lldp.c +++ b/src/daemon/lldp.c @@ -973,10 +973,6 @@ lldp_decode(struct lldpd *cfg, char *frame, int s, case LLDP_TLV_MED_IV_ASSET: chassis->c_med_asset = b; break; - default: - log_warnx("lldp", "should not be there!"); - free(b); - break; } port->p_med_cap_enabled |= LLDP_MED_CAP_IV;