diff options
| author | Sergey Popovich <popovich_sergei@mail.ua> | 2015-05-02 19:28:07 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-13 13:25:46 +0200 |
| commit | 8e55d2e5903e4698a964163e0cf81261eee086ee (patch) | |
| tree | 02be382c4018eba0f31afcb6101d75405430382e /tools/perf/scripts/python | |
| parent | netfilter: ipset: Preprocessor directices cleanup (diff) | |
| download | linux-8e55d2e5903e4698a964163e0cf81261eee086ee.tar.gz linux-8e55d2e5903e4698a964163e0cf81261eee086ee.zip | |
netfilter: ipset: Return ipset error instead of bool
Statement ret = func1() || func2() returns 0 when both func1()
and func2() return 0, or 1 if func1() or func2() returns non-zero.
However in our case func1() and func2() returns error code on
failure, so it seems good to propagate such error codes, rather
than returning 1 in case of failure.
Signed-off-by: Sergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
