]> git.baikalelectronics.ru Git - kernel.git/commit
[media] Make nchg variable signed because the code compares this variable against...
authorHans Petter Selasky <hselasky@c2i.net>
Mon, 23 May 2011 11:09:18 +0000 (08:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 15:20:57 +0000 (12:20 -0300)
commit23ef4e59dabe3f7cdb62e2c88b1f62740aff2be0
tree45a46cfc93065f46719c386ea5f42e4b87ff6f67
parentc458ece88ed1ff69dddf6e15927aa2d90025574e
[media] Make nchg variable signed because the code compares this variable against negative values

The sonixj driver compares the value for nchg with:
  if (sd->nchg < -6 || sd->nchg >= 12) {

With u8, negative values won't work.

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixj.c