paride: fix off-by-one test
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 11 Mar 2010 22:09:47 +0000 (14:09 -0800)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 12 Mar 2010 09:03:42 +0000 (10:03 +0100)
commitc12ec0a2d94001003dfb929ce14c287fca0522b0
treefd901e7114ddc7e1c7905ad768b982b6ff17ef66
parent39ad2bbb5900d1bc9ae8f06cebb4cb2529d9e42e
paride: fix off-by-one test

With `while (j++ < PX_SPIN)' j reaches PX_SPIN + 1 after the loop.  This
is probably unlikely to produce a problem.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/paride/pcd.c
drivers/block/paride/pf.c
drivers/block/paride/pt.c