VPP-189 Fix 137 coverity no-op issues from vpeapigen 62/2062/3
authorChris Luke <chrisy@flirble.org>
Fri, 22 Jul 2016 13:40:19 +0000 (09:40 -0400)
committerChris Luke <chrisy@flirble.org>
Fri, 22 Jul 2016 14:13:41 +0000 (10:13 -0400)
commit1642e3903d5467baf88531c96c733c285418b953
treec7081b08e84d4f449b39ab34003cbd344cfb2661
parent1f0da170e818a6991d841df47de0885da720b0c3
VPP-189 Fix 137 coverity no-op issues from vpeapigen

vpeapigen is not properly detecting no-op endian swap operations (on u8
or u8[] types) which in turn causes Coverity to currently report ~137
minor issues from the generated vpe.api.h file.

This patch makes vpeapigen comment out those no-op situations thus:

    /* a->interface_name[0..63] = a->interface_name[0..63] (no-op) */
    /* a->admin_up_down = a->admin_up_down (no-op) */

Change-Id: Ifbc5c93e1939206656e0515b528a4d167c539fd2
Signed-off-by: Chris Luke <chrisy@flirble.org>
vppapigen/node.c