From 4dc5486e48cf28858990242581763de1e62c0c7a Mon Sep 17 00:00:00 2001 From: Anan Jaser Date: Wed, 23 Sep 2020 02:56:55 +0400 Subject: [PATCH] net: core: sock: fix misleading intendation Change-Id: Ib5b351ac865374331f93ef9aa9f58c2af8b6915e --- net/core/sock.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/net/core/sock.c b/net/core/sock.c index beb2d98f87cf..4498f0179bdb 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -765,14 +765,17 @@ int sock_setsockopt(struct socket *sock, int level, int optname, return sock_setbindtodevice(sk, optval, optlen); /* START_OF_KNOX_NPA */ - if (optname == SO_SET_DOMAIN_NAME) + if (optname == SO_SET_DOMAIN_NAME) { return sock_set_domain_name(sk, optval, optlen); - if (optname == SO_SET_DNS_UID) + } + if (optname == SO_SET_DNS_UID) { return sock_set_dns_uid(sk, optval, optlen); + } /* END_OF_KNOX_NPA */ - if (optlen < sizeof(int)) + if (optlen < sizeof(int)) { return -EINVAL; + } if (get_user(val, (int __user *)optval)) return -EFAULT; -- 2.20.1