aboutsummaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-12-14 10:51:03 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-14 10:51:03 +0200
commit898e56d74905a5e55ed7ad3713308c767a49faf4 (patch)
tree81d17b002d1cc3b167895d5c04b846bbf2be3ee8 /input
parent824034094e344602118e13a38e1c6e99d7aaed2a (diff)
downloadbluez-898e56d74905a5e55ed7ad3713308c767a49faf4.tar.gz
Fix input disconnect function error return value
Diffstat (limited to 'input')
-rw-r--r--input/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/device.c b/input/device.c
index 0543fe62..d53eda50 100644
--- a/input/device.c
+++ b/input/device.c
@@ -745,7 +745,7 @@ static int disconnect(struct input_device *idev, uint32_t flags)
}
if (!iconn)
- return ENOTCONN;
+ return -ENOTCONN;
return connection_disconnect(iconn, flags);
}