]> git.baikalelectronics.ru Git - kernel.git/commit
ser_gigaset: turn nonsense checks into WARN_ON
authorAlan Cox <alan@linux.intel.com>
Tue, 15 Dec 2015 17:11:29 +0000 (18:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 18:24:21 +0000 (13:24 -0500)
commitb0bb8980fcbbd6bb5813b4d09b1f9154b8e16b75
tree707a3eb7ad55c9c70ca92213dd0f7de616b73c7e
parent11578a6dc89fc78bf28f18998d0956abb096f36c
ser_gigaset: turn nonsense checks into WARN_ON

These checks do nothing useful to protect the code from races. On the
other hand if the old code has been masking a real bug we would like to
know about it.

The check for tiocmset is kept because it is valid for a tty driver to
have a NULL tiocmset method. That in itself is probably a mistake given
modern coding practices - but needs fixing in the tty layer.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/ser-gigaset.c