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;