OSDN Git Service

vxlan: avoid double unlikely() notation when using IS_ERR()
authorAntonio Quartulli <a@unstable.cc>
Thu, 10 Dec 2020 08:55:49 +0000 (09:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 20:43:29 +0000 (12:43 -0800)
commita10b24b83242c8f2a9813d7919a711b42d07f71d
tree111be93faa9f604610f604ef4da2d063225e454c
parenta7105e3472bf6bb3099d1293ea7d70e7783aa582
vxlan: avoid double unlikely() notation when using IS_ERR()

The definition of IS_ERR() already applies the unlikely() notation
when checking the error status of the passed pointer. For this
reason there is no need to have the same notation outside of
IS_ERR() itself.

Clean up code by removing redundant notation.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c