about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-03 05:46:37 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-03 05:46:37 +0000
commit7aebf8554c93eb245a410a609db3d91940543e63 (patch)
tree352cf9753855002f9a98b85f4ff064b89a97c8d9
parent63ae67a9d9d063341eafd3ef3fa176810edf534b (diff)
downloadglibc-7aebf8554c93eb245a410a609db3d91940543e63.tar.gz
glibc-7aebf8554c93eb245a410a609db3d91940543e63.tar.xz
glibc-7aebf8554c93eb245a410a609db3d91940543e63.zip
Update.
	* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
	optimization.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/ifaddrs.c11
2 files changed, 6 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 96a0c304a6..8c710482b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
+	optimization.
+
 	* po/zh_CN.po: Update from translation team.
 
 	* posix/getconf.c (main): Also recognize names without the
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);