From 68194f84b13011742cca3dc1b55d86c1c60a9555 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 18 Oct 2012 11:10:55 -0700 Subject: [PATCH] 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 --- lib/ofp-parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: -- 2.30.2