diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2018-08-22 11:22:54 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2018-08-24 21:02:45 +0200 |
commit | 6d62c15f947ddb3d86346887a2616a621af515bb (patch) | |
tree | dc96aa293c194c2ee35dff680b178e2c480a9a23 /include/libipset/nf_inet_addr.h | |
parent | 328623aa1b9df83d63b09706426005991618bd22 (diff) |
Simplify return statement in ipset_mnl_query()
As we loop as long as 'ret' is greater than zero, and break only
if we get an error in mnl_cb_run2 (with ret <= 0), we can just
return ret without checking once more if it's greater than zero.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'include/libipset/nf_inet_addr.h')
0 files changed, 0 insertions, 0 deletions