osmith has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware 
refs/changes/78/41178/1

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: newchange
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I43b08a584891e94b9cfab095834e499dd5914b4f
Gerrit-Change-Number: 41178
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to