Remove an empty-body 'if' statement
authorYao Qi <yao@codesourcery.com>
Sun, 5 Jan 2014 11:32:51 +0000 (19:32 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 03:01:55 +0000 (11:01 +0800)
This patch removes the if statement and the comments together.

gdb:

2014-01-07  Yao Qi  <yao@codesourcery.com>

* gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
statement.

gdb/ChangeLog
gdb/gnu-nat.c

index 6117bc9..cf1d1b9 100644 (file)
@@ -1,5 +1,10 @@
 2014-01-07  Yao Qi  <yao@codesourcery.com>
 
+       * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
+       statement.
+
+2014-01-07  Yao Qi  <yao@codesourcery.com>
+
        * gnu-nat.c (info_port_rights): Add qualifier const to
        argument args.
 
index ffab91e..3da27d3 100644 (file)
@@ -3002,9 +3002,8 @@ set_exceptions_cmd (char *args, int from_tty)
   struct inf *inf = cur_inf ();
   int val = parse_bool_arg (args, "set exceptions");
 
-  if (inf->task && inf->want_exceptions != val)
-    /* Make this take effect immediately in a running process.  */
-    /* XXX */ ;
+  /* Make this take effect immediately in a running process.  */
+  /* XXX */ ;
 
   inf->want_exceptions = val;
 }