From: Jiri Slaby Date: Sun, 10 Jan 2010 01:17:34 +0000 (+0000) Subject: NET: irda, remove unnecessary checks X-Git-Tag: v2.6.34-rc1~233^2~615 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c026ca581f22497c42cbe7a2004fa0d5f1bd6c42;p=pandora-kernel.git 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 Cc: Samuel Ortiz Cc: "David S. Miller" Cc: Alan Cox Cc: Greg Kroah-Hartman Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed