changeset 5248:938a1b27357a libavformat

Simplify: remove pointless {} and else
author reimar
date Thu, 01 Oct 2009 17:26:20 +0000
parents 3e401281ff93
children 8e78fee99db5
files raw.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Thu Oct 01 17:22:01 2009 +0000
+++ b/raw.c	Thu Oct 01 17:26:20 2009 +0000
@@ -171,11 +171,9 @@
     pkt->dts= pkt->pos / packet_size;
 
     pkt->stream_index = 0;
-    if (ret != packet_size) {
+    if (ret != packet_size)
         return AVERROR(EIO);
-    } else {
-        return 0;
-    }
+    return 0;
 }
 #endif