This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Remove redundant check of type==cmd_set
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 17 Mar 2002 11:24:28 -0500
- Subject: [patch] Remove redundant check of type==cmd_set
Hello,
As far as I can tell this check is unnecessary. Committed.
Andrew
2002-03-17 Andrew Cagney <ac131313@redhat.com>
* kod.c (kod_set_os): Remove unnecessary check that
``command->type'' is set_cmd.
Index: kod.c
===================================================================
RCS file: /cvs/src/src/gdb/kod.c,v
retrieving revision 1.5
diff -u -r1.5 kod.c
--- kod.c 2002/02/05 04:37:21 1.5
+++ kod.c 2002/03/17 16:20:26
@@ -132,9 +132,6 @@
{
char *p;
- if (command->type != set_cmd)
- return;
-
/* If we had already had an open OS, close it. */
if (gdb_kod_close)
(*gdb_kod_close) ();