osmith submitted this change.
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(-)
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 change 41178. To unsubscribe, or for help writing mail filters, visit settings.