Messages in this thread | | | Date | Sun, 08 Feb 2009 18:42:17 +0100 | From | Mariusz Ceier <> | Subject | Re: [PATCH] spi: limit reaches -1, tested 0 |
| |
Roel Kluin writes in first post: > - while ((read(drv_data) == 0) && limit--); > + while ((read(drv_data) == 0) && --limit);
Roel Kluin writes in last post: > - while ((read(drv_data) == 0) && limit--); > + while ((read(drv_data) == 0) && limit--) > + cpu_relax();
so should there be postfix or prefix decrement ? :)
Mariusz Ceier
| |