OSDN Git Service

geneve: Get rid of is_all_zero(), streamline is_tnl_info_zero()
authorStefano Brivio <sbrivio@redhat.com>
Fri, 20 Oct 2017 11:31:36 +0000 (13:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:42:39 +0000 (02:42 +0100)
commit3fa5f11de1ab98a6c54693b78880167a2693cee1
tree4dcf64be7d2892ee037a6208647275b2a642d5b7
parentc44768e058827064704452f88b543f802f955cae
geneve: Get rid of is_all_zero(), streamline is_tnl_info_zero()

No need to re-invent memchr_inv() with !is_all_zero(). While at
it, replace conditional and return clauses with a single return
clause in is_tnl_info_zero().

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c