changeset 31644:68114b6e8311

Remove pointless assignments that would assing the value it already was initialized to.
author reimar
date Sun, 11 Jul 2010 17:10:18 +0000
parents 33be6a8f9197
children 9666dd193544
files sub_cc.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/sub_cc.c	Sun Jul 11 14:51:51 2010 +0000
+++ b/sub_cc.c	Sun Jul 11 17:10:18 2010 +0000
@@ -300,7 +300,6 @@
     case 0xfe:
       /* expect 2 byte encoding (perhaps CC3, CC4?) */
       /* ignore for time being */
-      skip = 2;
       break;
 
     case 0xff:
@@ -314,14 +313,11 @@
 
     case 0x00:
       /* This seems to be just padding */
-      skip = 2;
       break;
 
     case 0x01:
       odd_offset = data2 & 0x80;
-      if (odd_offset)
-	skip = 2;
-      else
+      if (!odd_offset)
 	skip = 5;
       break;
 
@@ -329,7 +325,6 @@
 //#ifdef LOG_DEBUG
       fprintf(stderr, "Unknown CC encoding: %x\n", cc_code);
 //#endif
-      skip = 2;
       break;
     }
     current += skip;