net: core: sock: fix misleading intendation
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 22:56:55 +0000 (02:56 +0400)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:14:04 +0000 (21:14 +0000)
Change-Id: Ib5b351ac865374331f93ef9aa9f58c2af8b6915e

net/core/sock.c

index beb2d98f87cf8690879561cc50a4d51012c94c14..4498f0179bdb6654705a252bca92cfb23b5ce181 100644 (file)
@@ -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;