libcam: Remove dead assignment.
authorSascha Wildner <saw@online.de>
Mon, 12 Oct 2009 22:31:27 +0000 (00:31 +0200)
committerSascha Wildner <saw@online.de>
Mon, 12 Oct 2009 22:31:27 +0000 (00:31 +0200)
lib/libcam/scsi_cmdparse.c

index 98f28c2..b99da64 100644 (file)
@@ -639,11 +639,8 @@ do_encode(u_char *buff, size_t vec_max, size_t *used,
 
        /* Flush out any remaining bits
         */
-       if (shift && ind < vec_max) {
+       if (shift && ind < vec_max)
                buff[ind++] = val;
-               val = 0;
-       }
-
 
        if (used)
                *used = ind;