]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/reveng/poly.c
chg: @piwi's code cleanup and some more.
[proxmark3-svn] / client / reveng / poly.c
index ed3118315033c10cdb3dfeff39e9dd50b6533a5f..35e38af3f71c1dc7e5a20d016b493e8e226f4493 100644 (file)
@@ -799,15 +799,15 @@ prev(poly_t *poly) {
        unsigned long fulllength = poly->length + ofs;
        bmp_t accu;
 
-       if(ofs)
+       if(ofs) {
                /* removable optimisation */
                if(poly->length < (unsigned long) BMP_BIT) {
                        *poly->bitmap = rev(*poly->bitmap >> ofs, (int) poly->length) << ofs;
                        return;
                }
-
-               /* claim remaining bits of last word (as we use public function pshift()) */
-               poly->length = fulllength;
+       }
+       /* claim remaining bits of last word (as we use public function pshift()) */
+       poly->length = fulllength;
 
        /* reverse and swap words in the array, leaving it right-justified */
        while(leftidx < rightidx) {
Impressum, Datenschutz