Re: [PATCH] v4l: Cleanup redundant tests on unsigned

2009-10-23 Thread Roel Kluin
Op 23-10-09 12:59, Roel Kluin schreef: > The variables are unsigned so the test `>= 0' is always true, > the `< 0' test always fails. In these cases the other part of > the test catches wrapped values. > > Signed-off-by: Roel Kluin > --- I forgot the stats: drivers/media/common/tuners/tda9887.

[PATCH] v4l: Cleanup redundant tests on unsigned

2009-10-23 Thread Roel Kluin
The variables are unsigned so the test `>= 0' is always true, the `< 0' test always fails. In these cases the other part of the test catches wrapped values. Signed-off-by: Roel Kluin --- diff --git a/drivers/media/common/tuners/tda9887.c b/drivers/media/common/tuners/tda9887.c index 544cdbe..a71