Fix coverity CIDs 157344, 157343, 157341, 157340, 157339, 157336 49/4149/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 7 Dec 2016 12:20:07 +0000 (12:20 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 7 Dec 2016 12:20:07 +0000 (12:20 +0000)
commitcd06b728920e7119582de4d9a09ac71034706b2a
treecdf2122db4bdd5510b3a337560bd5bfd4f2d6316
parent288e8930ee7f1cf4980c06c167ef4e0cdf559528
Fix coverity CIDs 157344, 157343, 157341, 157340, 157339, 157336

The macros used to verify the validity of sw_if_index passed in
the API calls have puzzled coverity.

Even though the issues are false positives, the checks are rather
simple, so edited them to avoid using the preprocessor macros,
it makes the code easier to follow.

Added the null check for 157336.

Change-Id: I24651346851215b236e53e682261e1f91219b381
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
plugins/acl-plugin/acl/acl.c
plugins/acl-plugin/acl/l2sess_node.c