af_unix: Remove unnecessary brackets around CONFIG_AF_UNIX_OOB.
Subsystems (3)
PATCH 1/1 af_unix: Remove unnecessary brackets around CONFIG_AF_UNIX_OOB.
Let's remove unnecessary brackets around CONFIG_AF_UNIX_OOB.
Signed-off-by Kuniyuki Iwashima <[email protected]>
---
This is a follow up patch from
https://lore.kernel.org/netdev/20220316194614.3e38cadc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/#t
--- net/unix/af_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
net/unix/af_unix.c +3 -3
@@ -2049,7 +2049,7 @@ static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,*/ #define UNIX_SKB_FRAGS_SZ (PAGE_SIZE << get_order(32768)) -#if (IS_ENABLED (CONFIG_AF_UNIX_OOB )) +#if IS_ENABLED (CONFIG_AF_UNIX_OOB )static int queue_oob (struct socket *sock,struct msghdr *msg,struct sock *other) {struct unix_sock *ousk =unix_sk (other);
@@ -2115,7 +2115,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg, err = -EOPNOTSUPP ;if (msg->msg_flags &MSG_OOB ) { -#if (IS_ENABLED (CONFIG_AF_UNIX_OOB )) +#if IS_ENABLED (CONFIG_AF_UNIX_OOB )if (len) len--;else
@@ -2186,7 +2186,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg, sent += size; } -#if (IS_ENABLED (CONFIG_AF_UNIX_OOB )) +#if IS_ENABLED (CONFIG_AF_UNIX_OOB )if (msg->msg_flags &MSG_OOB ) { err =queue_oob (sock, msg, other);if (err)
Signature · 1 line
2.30.2
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Thu, 17 Mar 2022 12:23:08 +0900 you wrote:
Let's remove unnecessary brackets around
CONFIG_AF_UNIX_OOB.Signed-off-by Kuniyuki Iwashima <[email protected]>---
This is a follow up patch from
https://lore.kernel.org/netdev/20220316194614.3e38cadc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/#t[...]
Here is the summary with links:
- [net-next] af_unix: Remove unnecessary brackets around CONFIG_AF_UNIX_OOB.
https://git.kernel.org/netdev/net-next/c/4edf21aa94ee
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html