]> granicus.if.org Git - ipset/commit
Simplify mtype_expire() for hash types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 26 Jun 2015 08:14:47 +0000 (10:14 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 26 Jun 2015 08:14:47 +0000 (10:14 +0200)
commit90ca753057549e8c251830b10752c16c76e1bd55
treea0b6b4fe78eadd1a0591b44f0e40dce36efa8561
parent5a5688893ae312faf2574e7c707a78c225256973
Simplify mtype_expire() for hash types

Remove redundant parameters nets_length and dsize:
they could be get from other parameters.

Remove one leve of intendation by using continue while
iterating over elements in bucket.

Ported from a patch proposed by Sergey Popovich <popovich_sergei@mail.ua>.
kernel/net/netfilter/ipset/ip_set_hash_gen.h