ofp-parse: Remove unreachable code.
authorBen Pfaff <blp@nicira.com>
Thu, 18 Oct 2012 18:10:55 +0000 (11:10 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Oct 2012 18:39:26 +0000 (11:39 -0700)
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 <blp@nicira.com>
Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp>
lib/ofp-parse.c

index 122f4b3..a9d70de 100644 (file)
@@ -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: