Jiri Slaby c026ca581f NET: irda, remove unnecessary checks
Stanse found a potential null dereference in ircomm_tty_close
and ircomm_tty_hangup. There is a check for tty being NULL,
but it is dereferenced earlier. But it is bogus, the tty cannot
be NULL, so remove the !tty checks.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-01-10 13:27:58 -08:00
..
2009-12-16 12:16:41 -05:00
2009-11-25 15:14:13 -08:00
2009-12-26 20:38:23 -08:00
2010-01-10 13:27:57 -08:00
2010-01-10 13:27:58 -08:00
2009-12-15 08:53:25 -08:00
2009-11-25 15:14:13 -08:00
2009-11-25 15:14:13 -08:00
2009-07-12 12:22:34 -07:00
2009-12-17 10:51:40 -05:00