[PATCH] Remove redundant null check in dump_setup()

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Aug 7 16:34:00 GMT 2003


Hi,
The patch speaks for itself.  I didn't want to include this as part of a
larger patch -- let me know if I should do that instead.
	Igor
==============================================================================
ChangeLog:
2003-08-07  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* dump_setup.cc (dump_setup): Remove redundant null check.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton
-------------- next part --------------
Index: dump_setup.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/dump_setup.cc,v
retrieving revision 1.6
diff -u -p -r1.6 dump_setup.cc
--- dump_setup.cc	7 Feb 2003 21:34:34 -0000	1.6
+++ dump_setup.cc	7 Aug 2003 16:29:49 -0000
@@ -188,9 +188,6 @@ dump_setup (int verbose, char **argv, bo
 	puts ("");
     }
 
-  if (!fp)
-    goto err;
-
   int nlines;
   nlines = 0;
   char buf[4096];


More information about the Cygwin-patches mailing list