ypr0: Fix erroneous if condition.

The GPIO device file wasn't closed due to this. This wasn't a big deal
because the device powers off shorty afterwards anyway.

Change-Id: I9a6b4d57d32627157323b4883e47b8812f5dcb4d
This commit is contained in:
Thomas Martitz 2013-03-06 10:02:48 +01:00
parent 60592165ca
commit 7ef2fe3819

View file

@ -37,7 +37,7 @@ void gpio_init(void)
void gpio_close(void)
{
if (r0_gpio_dev < 0)
if (r0_gpio_dev >= 0)
close(r0_gpio_dev);
}