X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2c9e30908cf1f9427f4a2585ae2933b01563e547..e1778858ddc53a6a82e8ee24f02e6b673687f69a:/client/reveng/poly.c diff --git a/client/reveng/poly.c b/client/reveng/poly.c index ed311831..35e38af3 100644 --- a/client/reveng/poly.c +++ b/client/reveng/poly.c @@ -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) {