summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-03-06 10:02:48 +0100
committerThomas Martitz <kugel@rockbox.org>2013-03-06 10:02:48 +0100
commit7ef2fe38190670ba231aaf6a23ca59f9b8e370f8 (patch)
tree815a8acd8c736e713e9ec2cc762f85e4558f1172
parent60592165ca998875e4bc46c4396c5a123a7e9dbb (diff)
downloadrockbox-7ef2fe38190670ba231aaf6a23ca59f9b8e370f8.tar.gz
rockbox-7ef2fe38190670ba231aaf6a23ca59f9b8e370f8.zip
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
-rw-r--r--firmware/target/hosted/samsungypr/gpio_ypr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/samsungypr/gpio_ypr.c b/firmware/target/hosted/samsungypr/gpio_ypr.c
index 0d4a7eceae..cd27e27e9b 100644
--- a/firmware/target/hosted/samsungypr/gpio_ypr.c
+++ b/firmware/target/hosted/samsungypr/gpio_ypr.c
@@ -37,7 +37,7 @@ void gpio_init(void)
37 37
38void gpio_close(void) 38void gpio_close(void)
39{ 39{
40 if (r0_gpio_dev < 0) 40 if (r0_gpio_dev >= 0)
41 close(r0_gpio_dev); 41 close(r0_gpio_dev);
42} 42}
43 43