Fixes compiler warning
isdv4-serial-debugger.c: In function ‘set_baud_rate’:
isdv4-serial-debugger.c:127:6: warning: variable ‘rc’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Peter Hutterer <[email protected]>
---
 tools/isdv4-serial-debugger.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/isdv4-serial-debugger.c b/tools/isdv4-serial-debugger.c
index e581848..8a64f43 100644
--- a/tools/isdv4-serial-debugger.c
+++ b/tools/isdv4-serial-debugger.c
@@ -138,6 +138,10 @@ static int set_baud_rate(int fd, int baud)
        }
 
        rc = tcgetattr(fd, &t);
+
+       if (rc)
+               return rc;
+
        cfsetispeed(&t, baud);
        cfsetospeed(&t, baud);
 
-- 
1.7.4.2


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to