Code

remove duplicate code in rrd_open -- Richard Laager
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 2 Feb 2012 15:39:54 +0000 (15:39 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 2 Feb 2012 15:39:54 +0000 (15:39 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2271 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_open.c

index 0de9b395baefc9fe83b2dda77ea50c6e916298b0..9c839a157b9f3ac3a77807dc28195305ed257b4a 100644 (file)
@@ -301,9 +301,6 @@ rrd_file_t *rrd_open(
         goto out_close;
     }
     rrd_simple_file->file_start = data;
-    if (rdwr & RRD_CREAT) {
-        goto out_done;
-    }
 #endif
     if (rdwr & RRD_CREAT)
         goto out_done;