Browse Source

Update sal_socket.c

格式化代码
HubretXie 6 years ago
parent
commit
fd05ad76d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/net/sal_socket/src/sal_socket.c

+ 2 - 2
components/net/sal_socket/src/sal_socket.c

@@ -174,7 +174,7 @@ static void check_netdev_internet_up_work(struct rt_work *work, void *work_data)
         goto __exit;
     }
 
-	skt_ops = pf->skt_ops;
+    skt_ops = pf->skt_ops;
     if((sockfd = skt_ops->socket(AF_INET, SOCK_DGRAM, 0)) < 0)
     {
         result = -RT_ERROR;
@@ -394,7 +394,7 @@ static int socket_init(int family, int type, int protocol, struct sal_socket **r
         return -3;
     }
 
-    if (netdev_is_up(netdv_def)&&netdev_is_link_up(netdv_def))
+    if (netdev_is_up(netdv_def) && netdev_is_link_up(netdv_def))
     {
         /* check default network interface device protocol family */
         pf = (struct sal_proto_family *) netdv_def->sal_user_data;