summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-31 18:59:42 +0000
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-31 18:59:42 +0000
commit66e992292332d5dce4025525c34b883b65be5e8f (patch)
treee9b48c543335c1d756a8bf3814b7cddb5b065d43 /libgfortran
parent5dd72fac96c929241cb29234116abbb5b30e1bb4 (diff)
downloadgcc-66e992292332d5dce4025525c34b883b65be5e8f.tar.gz
* io/unit.c (get_unit): Remove superfluous if.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/io/unit.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 1c76245bb39..641f32d4dce 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,5 +1,9 @@
2004-08-31 Paul Brook <paul@codesourcery.com>
+ * io/unit.c (get_unit): Remove superfluous if.
+
+2004-08-31 Paul Brook <paul@codesourcery.com>
+
* io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
(finalize_transfer): Move setjmp after namlist IO.
* io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c
index c3d6e7eca13..4b09884e35b 100644
--- a/libgfortran/io/unit.c
+++ b/libgfortran/io/unit.c
@@ -264,10 +264,8 @@ get_unit (int read_flag)
/* Has to be an external unit */
u = find_unit (ioparm.unit);
- if (u != NULL)
- return u;
- return NULL;
+ return u;
}