diff options
author | Alan Cox <alan@linux.intel.com> | 2015-12-15 18:11:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-15 19:24:21 +0100 |
commit | ede03d306b8ba97c7988646aa503489ed421f05a (patch) | |
tree | 707a3eb7ad55c9c70ca92213dd0f7de616b73c7e /drivers/isdn/hisax/isurf.c | |
parent | ser_gigaset: fix up NULL checks (diff) | |
download | linux-ede03d306b8ba97c7988646aa503489ed421f05a.tar.xz linux-ede03d306b8ba97c7988646aa503489ed421f05a.zip |
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>
Diffstat (limited to 'drivers/isdn/hisax/isurf.c')
0 files changed, 0 insertions, 0 deletions