dect
/
linux-2.6
Archived
13
0
Fork 0

sh: boards/mach-x3proto: gpio: fix error handling code

Checks for (irq < 0) and (ilsel < 0) didn't make sense since they were
unsigned.  Made them signed.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Kulikov Vasiliy 2010-10-10 17:28:27 +00:00 committed by Paul Mundt
parent 06c7a489a9
commit 5a30d7bfcd
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ struct gpio_chip x3proto_gpio_chip = {
int __init x3proto_gpio_setup(void)
{
unsigned int ilsel;
int ilsel;
int ret, i;
ilsel = ilsel_enable(ILSEL_KEY);
@ -92,7 +92,7 @@ int __init x3proto_gpio_setup(void)
for (i = 0; i < NR_BASEBOARD_GPIOS; i++) {
unsigned long flags;
unsigned int irq = create_irq();
int irq = create_irq();
if (unlikely(irq < 0)) {
ret = -EINVAL;