X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2c9e30908cf1f9427f4a2585ae2933b01563e547..aa9b584f5c3050e4f186f12c097219814422b19b:/client/reveng/poly.c?ds=sidebyside 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) {