]> sigrok.org Git - pulseview.git/commitdiff
Removed uneeded statements from LogicDataSnapshot
authorJoel Holdsworth <redacted>
Sat, 13 Oct 2012 21:14:36 +0000 (22:14 +0100)
committerJoel Holdsworth <redacted>
Sat, 20 Oct 2012 17:29:24 +0000 (18:29 +0100)
pv/logicdatasnapshot.cpp

index b78047d761ca29c351c1300230aa94553cf5434b..1799c2f418f14daf27670d9f06b4b8549442ac8a 100644 (file)
@@ -206,8 +206,7 @@ void LogicDataSnapshot::get_subsampled_edges(
                        const uint64_t final_index = min(end,
                                pow2_ceil(index, MipMapScalePower));
 
-                       for(index;
-                               index < final_index &&
+                       for(; index < final_index &&
                                (index & ~(~0 << MipMapScalePower)) != 0;
                                index++)
                        {
@@ -312,7 +311,7 @@ void LogicDataSnapshot::get_subsampled_edges(
                        // do a linear search for the next transition within the
                        // block
                        if(min_length < MipMapScaleFactor) {
-                               for(index; index < end; index++) {
+                               for(; index < end; index++) {
                                        const bool sample = (get_sample(index) &
                                                sig_mask) != 0;
                                        if(sample != last_sample)