From: Dan Carpenter Date: Sat, 10 Mar 2012 07:58:18 +0000 (-0300) Subject: [media] gpio-ir-recv: a couple signedness bugs X-Git-Tag: v3.4-rc1~110^2^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=955b44304afca143b82304fe421e990ec607834a;p=pandora-kernel.git [media] gpio-ir-recv: a couple signedness bugs There are couple places where we check unsigned values for negative. I changed ->gpin_nr to signed because in gpio_ir_recv_probe() we do: if (pdata->gpio_nr < 0) return -EINVAL; I also change gval to a signed int in gpio_ir_recv_irq() because that's the type that gpio_get_value_cansleep() returns and we test for negative returns. Signed-off-by: Dan Carpenter Reviewed-by: Trilok Soni Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed