From 7aebf8554c93eb245a410a609db3d91940543e63 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 3 Jun 2003 05:46:37 +0000 Subject: Update. * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor optimization. --- sysdeps/unix/sysv/linux/ifaddrs.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c index e7b59574d1..6765387bc7 100644 --- a/sysdeps/unix/sysv/linux/ifaddrs.c +++ b/sysdeps/unix/sysv/linux/ifaddrs.c @@ -177,15 +177,10 @@ netlink_receive (struct netlink_handle *h) nlm_next->size = read_len; nlm_next->seq = h->seq; if (h->nlm_list == NULL) - { - h->nlm_list = nlm_next; - h->end_ptr = nlm_next; - } + h->nlm_list = nlm_next; else - { - h->end_ptr->next = nlm_next; - h->end_ptr = nlm_next; - } + h->end_ptr->next = nlm_next; + h->end_ptr = nlm_next; for (nlmh = (struct nlmsghdr *) buf; NLMSG_OK (nlmh, (size_t) read_len); -- cgit v1.2.3-70-g09d2