]> git.ipfire.org Git - thirdparty/ipset.git/commit
Simplify return statement in ipset_mnl_query()
authorStefano Brivio <sbrivio@redhat.com>
Wed, 22 Aug 2018 09:22:54 +0000 (11:22 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 24 Aug 2018 19:02:45 +0000 (21:02 +0200)
commit6d62c15f947ddb3d86346887a2616a621af515bb
treedc96aa293c194c2ee35dff680b178e2c480a9a23
parent328623aa1b9df83d63b09706426005991618bd22
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>
lib/mnl.c