[PATCH] blktrace: bad ret = len assignment that should be ret == len
authorTom Zanussi <zanussi@us.ibm.com>
Sun, 22 Jan 2006 18:10:04 +0000 (19:10 +0100)
committerJens Axboe <axboe@suse.de>
Sun, 22 Jan 2006 18:10:04 +0000 (19:10 +0100)
blktrace.c

index 6055a30bd02d229e9a1db3a12cbc9658497bf92a..b58f86afb5fc57d0c5d5e91d0c3d4b161c85b7ea 100644 (file)
@@ -362,7 +362,7 @@ static void refill_ringbuffer(struct thread_information *tip, int block)
                        resize_ringbuffer(tip);
 
                ret = __refill_ringbuffer(tip, len, block);
-       } while ((ret = len) && !is_done());
+       } while ((ret == len) && !is_done());
 }
 
 static int read_data(struct thread_information *tip, void *buf,