Home
last modified time | relevance | path

Searched hist:"30 ac4e2f54ec067b7b9ca0db27e75681581378d6" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Dsocket.cdiff 30ac4e2f54ec067b7b9ca0db27e75681581378d6 Mon Feb 22 10:25:43 CST 2021 Antonio Quartulli <a@unstable.cc> wireguard: 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: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
H A Ddevice.cdiff 30ac4e2f54ec067b7b9ca0db27e75681581378d6 Mon Feb 22 10:25:43 CST 2021 Antonio Quartulli <a@unstable.cc> wireguard: 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: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>