X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-actions.c;fp=lib%2Fofp-actions.c;h=baa6fdd7f5c27578b74f9cfc8a243eac6a541b13;hb=6ae0fd547b96e501ad105b1fc51113bacddc56d5;hp=0e8b9dac42ad4e37a2d5b22d7353d301f7058b9a;hpb=0ceaa66c393bb7e59126e66d578dd2b8431c2a49;p=sliver-openvswitch.git diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 0e8b9dac4..baa6fdd7f 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -770,13 +770,7 @@ OVS_INSTRUCTIONS const char * ofpact_instruction_name_from_type(enum ovs_instruction_type type) { - const struct instruction_type_info *p; - for (p = inst_info; p < &inst_info[ARRAY_SIZE(inst_info)]; p++) { - if (p->type == type) { - return p->name; - } - } - return NULL; + return inst_info[type].name; } int