Remove the extra check of the termios structure.
Remove the extra check of the termios structure.

The extra memcmp check after the tcsetattr call is intended to verify
whether all the changes to the termios structure have been applied
correctly.

But for pty's, some of the termios settings make no sense at all, and
therefore the Linux kernel always does:

    tty->termios.c_cflag &= ~(CSIZE | PARENB);
    tty->termios.c_cflag |= (CS8 | CREAD);

Thus, instead of ignoring such nonsense termios settings, the kernel
changes the termios structure to reflect what pty's actually do. The
consequence is that these settings will not stick, and cause the memcmp
check to fail.

An example where this affects libdivecomputer, are the two backends that
require odd or even parity (e.g. vyper and iconhd). Here, the kernel
will clear the PARENB flag, and thus cause the memcmp check to fail.

Since this check appears to causes more trouble than it solves, let's
just remove it completely!

venkateshshukla/libdivecomputer,glance-/libdivecomputer,glance-/libdivecomputer,josh-wambua/libdivecomputer,venkateshshukla/libdivecomputer,josh-wambua/libdivecomputer,Poltsi/libdivecomputer-vms,henrik242/libdivecomputer,henrik242/libdivecomputer