Commit d63b95b8 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix bogus C in ite_gpio

parent 2a30a3be
...@@ -140,7 +140,7 @@ int ite_gpio_in_status(__u32 device, __u32 mask, volatile __u32 *data) ...@@ -140,7 +140,7 @@ int ite_gpio_in_status(__u32 device, __u32 mask, volatile __u32 *data)
{ {
int ret=-1; int ret=-1;
if (MAX_GPIO_LINE > *data >= 0) if ((MAX_GPIO_LINE > *data) && (*data >= 0))
ret=ite_gpio_irq_pending[*data]; ret=ite_gpio_irq_pending[*data];
DEB(printk("ite_gpio_in_status %d ret=%d\n",*data, ret)); DEB(printk("ite_gpio_in_status %d ret=%d\n",*data, ret));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment