]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02a11bc455d89374c3aad5cd53330d3f4e527870
tree4dcf64be7d2892ee037a6208647275b2a642d5b7
parent70ec6535ad21c4596d6c7579a15b702e6a198855
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