From: Ben Pfaff Date: Thu, 18 Oct 2012 18:10:55 +0000 (-0700) Subject: ofp-parse: Remove unreachable code. X-Git-Tag: sliver-openvswitch-1.9.90-1~3^2~30 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=68194f84b13011742cca3dc1b55d86c1c60a9555 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 122f4b36d..a9d70de10 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: