Skip to content

Commit fd05ad7

Browse files
authored
Update sal_socket.c
格式化代码
1 parent 2d82b62 commit fd05ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/net/sal_socket/src/sal_socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static void check_netdev_internet_up_work(struct rt_work *work, void *work_data)
174174
goto __exit;
175175
}
176176

177-
skt_ops = pf->skt_ops;
177+
skt_ops = pf->skt_ops;
178178
if((sockfd = skt_ops->socket(AF_INET, SOCK_DGRAM, 0)) < 0)
179179
{
180180
result = -RT_ERROR;
@@ -394,7 +394,7 @@ static int socket_init(int family, int type, int protocol, struct sal_socket **r
394394
return -3;
395395
}
396396

397-
if (netdev_is_up(netdv_def)&&netdev_is_link_up(netdv_def))
397+
if (netdev_is_up(netdv_def) && netdev_is_link_up(netdv_def))
398398
{
399399
/* check default network interface device protocol family */
400400
pf = (struct sal_proto_family *) netdv_def->sal_user_data;

0 commit comments

Comments
 (0)