This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Minor cleanup
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Aug 2004 21:14:07 +0200
- Subject: Re: [gfortran] Minor cleanup
- References: <200408311959.51919.paul@codesourcery.com>
Paul Brook wrote:
> u = find_unit (ioparm.unit);
> - if (u != NULL)
> - return u;
>
> - return NULL;
> + return u;
> }
Any reason not to go all the way, and say "return find_unit (...);" and remove
the then unused variable u? I can do this if you agree that it's worthwhile.
- Tobi