acl-plugin: fix coverity error 188909 in unit-test code 38/15938/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 14 Nov 2018 15:39:39 +0000 (16:39 +0100)
committerDamjan Marion <dmarion@me.com>
Thu, 15 Nov 2018 17:21:33 +0000 (17:21 +0000)
The assignment was redundant with a one just a dozen lines above
in the case of the ACL loaded being non-empty, so its only
apparent purpose in life was make coverity unhappy...
Thus fix by deletion.

Change-Id: I573308cb9c212bdfdca2551aa381720dbbcb006e
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl_test.c

index dcb0888..ef98f79 100644 (file)
@@ -652,7 +652,6 @@ api_acl_add_replace_from_file (vat_main_t * vam)
            rules[rule_idx].proto = proto;
 
       }
-    rules[rule_idx].is_permit = is_permit;
 
     if (append_default_permit) {
        rule_idx++;