[PATCH BlueZ 2/2] hid2hci: Fix the exit value on success

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>

Presumably we would want the program exit value to indicate
success when things worked out. Do that.
---
 tools/hid2hci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/hid2hci.c b/tools/hid2hci.c
index 206a5af032ae..2da7dd4ed7f8 100644
--- a/tools/hid2hci.c
+++ b/tools/hid2hci.c
@@ -432,6 +432,8 @@ int main(int argc, char *argv[])
 	if (err < 0)
 		fprintf(stderr, "error: switching device '%s' failed.\n",
 			udev_device_get_syspath(udev_dev));
+	else
+		rc = 0;
 exit:
 	udev_device_unref(udev_dev);
 	udev_unref(udev);
-- 
2.21.0




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux