2011-03-14 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 14 Mar 2011 21:26:24 +0000 (21:26 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 14 Mar 2011 21:26:24 +0000 (21:26 +0000)
* gdbserver/hostio.c (handle_close): Remove unnecessary null test.

gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio.c

index 5028bf3e7cfa4812a257e8a468b65a4fa0b9a032..ab5e9498354b1237ce888aea49c1f67b992a36c7 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-14  Michael Snyder  <msnyder@vmware.com>
+
+       * gdbserver/hostio.c (handle_close): Remove unnecessary null test.
+
 2011-03-10  Joel Brobecker  <brobecker@adacore.com>
 
        * Makefile.in (maintainer-clean realclean distclean): Remove
 
 2011-02-28  Michael Snyder  <msnyder@vmware.com>
 
+       * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
+       (cmd_qtframe): Ditto.
+       (cmd_qtbuffer): Ditto.
+       (cmd_bigqtbuffer): Ditto.
+
        * utils.c (decimal2str): Initialize 'width' to nine, then
        don't mess with it.
 
index 3b65febcf6c08be749770a5d0f5c2f69d8256dd5..7105013485b2ed2a2ab2d6159140e2e28221ae3d 100644 (file)
@@ -418,7 +418,8 @@ handle_close (char *own_buf)
     }
 
   open_fd_p = &open_fds;
-  while (*open_fd_p && (*open_fd_p)->fd != fd)
+  /* We know that fd is in the list, thanks to require_valid_fd.  */
+  while ((*open_fd_p)->fd != fd)
     open_fd_p = &(*open_fd_p)->next;
 
   old_fd = *open_fd_p;