Commit 522e89d6 authored by simran singhal's avatar simran singhal Committed by Pablo Neira Ayuso

netfilter: ipset: Compress return logic

Simplify function returns by merging assignment and return into one
command line.
Signed-off-by: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 26873308
......@@ -453,7 +453,6 @@ static size_t
list_set_memsize(const struct list_set *map, size_t dsize)
{
struct set_elem *e;
size_t memsize;
u32 n = 0;
rcu_read_lock();
......@@ -461,9 +460,7 @@ list_set_memsize(const struct list_set *map, size_t dsize)
n++;
rcu_read_unlock();
memsize = sizeof(*map) + n * dsize;
return memsize;
return (sizeof(*map) + n * dsize);
}
static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment