diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-10 08:58:18 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 19:45:01 +0100 |
commit | 955b44304afca143b82304fe421e990ec607834a (patch) | |
tree | f0046ed726b7c677d6d70d256c816573cb503932 /fs/generic_acl.c | |
parent | [media] Staging: media: solo6x10: core.c Fix some coding style issue (diff) | |
download | linux-955b44304afca143b82304fe421e990ec607834a.tar.xz linux-955b44304afca143b82304fe421e990ec607834a.zip |
[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 <dan.carpenter@oracle.com>
Reviewed-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'fs/generic_acl.c')
0 files changed, 0 insertions, 0 deletions