From: Ben Pfaff Date: Thu, 18 Oct 2012 18:10:55 +0000 (-0700) Subject: ofp-parse: Remove unreachable code. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68194f84b13011742cca3dc1b55d86c1c60a9555;p=openvswitch ofp-parse: Remove unreachable code. OFPUTIL_OFPAT11_DEC_NW_TTL does not have a name in the table of actions' names, so this code in parse_named_action() can never be reached. Signed-off-by: Ben Pfaff Reviewed-by: Isaku Yamahata --- diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 122f4b36..a9d70de1 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -439,8 +439,7 @@ parse_named_action(enum ofputil_action_code code, const struct flow *flow, break; case OFPUTIL_OFPAT11_DEC_NW_TTL: - parse_noargs_dec_ttl(ofpacts, code); - break; + NOT_REACHED(); case OFPUTIL_OFPAT10_SET_TP_SRC: case OFPUTIL_OFPAT11_SET_TP_SRC: