diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-02-10 10:55:45 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-02-11 10:35:28 -0800 |
| commit | f0f4410a47e20d5c6c8f0e56eb7c8a2a3248248c (patch) | |
| tree | 0407e5f494723627f14c1d8b8085d2a9bc113467 /tests/test-classifier.c | |
| parent | 141c83fa93693d750f804d5124d960992a723de7 (diff) | |
| download | openvswitch-f0f4410a47e20d5c6c8f0e56eb7c8a2a3248248c.tar.gz | |
tests: Remove write-only variables.
Found by Clang (http://clang-analyzer.llvm.org/).
Diffstat (limited to 'tests/test-classifier.c')
| -rw-r--r-- | tests/test-classifier.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-classifier.c b/tests/test-classifier.c index d36c8eb1a..010cdc641 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -532,8 +532,8 @@ test_rule_replacement(void) for (wc_fields = 0; wc_fields < (1u << CLS_N_FIELDS); wc_fields++) { struct classifier cls; - struct test_rule *rule1, *tcls_rule1; - struct test_rule *rule2, *tcls_rule2; + struct test_rule *rule1; + struct test_rule *rule2; struct tcls tcls; rule1 = make_rule(wc_fields, OFP_DEFAULT_PRIORITY, UINT_MAX); @@ -543,14 +543,14 @@ test_rule_replacement(void) classifier_init(&cls); tcls_init(&tcls); - tcls_rule1 = tcls_insert(&tcls, rule1); + tcls_insert(&tcls, rule1); assert(!classifier_insert(&cls, &rule1->cls_rule)); check_tables(&cls, 1, 1, 1); compare_classifiers(&cls, &tcls); tcls_destroy(&tcls); tcls_init(&tcls); - tcls_rule2 = tcls_insert(&tcls, rule2); + tcls_insert(&tcls, rule2); assert(test_rule_from_cls_rule( classifier_insert(&cls, &rule2->cls_rule)) == rule1); free(rule1); |
