Re: [PATCH] spi: limit reaches -1, tested 0

From: Mariusz Ceier
Date: Sun Feb 08 2009 - 12:39:53 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/