[S] Change in osmo-ccid-firmware[master]: ccid_host: remove unused _set_dtr
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/41178?usp=email ) Change subject: ccid_host: remove unused _set_dtr ...................................................................... ccid_host: remove unused _set_dtr Fix for: cuart_driver_tty.c:62:13: warning: '_set_dtr' defined but not used [-Wunused-function] 62 | static void _set_dtr(int fd, bool dtr) Change-Id: I43b08a584891e94b9cfab095834e499dd5914b4f --- M ccid_host/cuart_driver_tty.c 1 file changed, 0 insertions(+), 14 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified osmith: Looks good to me, approved diff --git a/ccid_host/cuart_driver_tty.c b/ccid_host/cuart_driver_tty.c index a9032fa..66d1e9d 100644 --- a/ccid_host/cuart_driver_tty.c +++ b/ccid_host/cuart_driver_tty.c @@ -59,20 +59,6 @@ return 0; } -static void _set_dtr(int fd, bool dtr) -{ - int status, rc; - - rc = ioctl(fd, TIOCMGET, &status); - OSMO_ASSERT(rc == 0); - if (dtr) /* set DTR */ - status |= TIOCM_DTR; - else - status &= ~TIOCM_DTR; - rc = ioctl(fd, TIOCMSET, &status); - OSMO_ASSERT(rc == 0); -} - static void _set_rts(int fd, bool rts) { int status, rc; -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/41178?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: I43b08a584891e94b9cfab095834e499dd5914b4f Gerrit-Change-Number: 41178 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: osmith <osmith@sysmocom.de>
participants (1)
-
osmith