OSDN Git Service

qemu-io: remove unnecessary assignment
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 4 Sep 2011 10:38:01 +0000 (10:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 10 Sep 2011 14:46:52 +0000 (14:46 +0000)
Remove an unnecessary assignment, spotted by clang analyzer:
/src/qemu/qemu-io.c:995:9: warning: Value stored to 'offset' is never read
        offset += reqs[i].qiov->size;

Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-io.c

index 7e40c48..5e46213 100644 (file)
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -992,7 +992,6 @@ static int multiwrite_f(int argc, char **argv)
 
         optind = j + 1;
 
-        offset += reqs[i].qiov->size;
         pattern++;
     }