forked from len0rd/rockbox
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:
parent
60592165ca
commit
7ef2fe3819
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void gpio_init(void)
|
||||||
|
|
||||||
void gpio_close(void)
|
void gpio_close(void)
|
||||||
{
|
{
|
||||||
if (r0_gpio_dev < 0)
|
if (r0_gpio_dev >= 0)
|
||||||
close(r0_gpio_dev);
|
close(r0_gpio_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue