From: Anan Jaser Date: Tue, 22 Sep 2020 22:56:55 +0000 (+0400) Subject: net: core: sock: fix misleading intendation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25a76df80a0818aa6490b31df4e66988d33faf7d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git net: core: sock: fix misleading intendation Change-Id: Ib5b351ac865374331f93ef9aa9f58c2af8b6915e --- 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;