lkml.org 
[lkml]   [2009]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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




\
 
 \ /
  Last update: 2009-02-08 18:43    [W:0.657 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site