From: Jiri Slaby Date: Sun, 10 Jan 2010 11:30:16 +0000 (+0100) Subject: Char: synclink, remove unnecessary checks X-Git-Tag: v2.6.34-rc1~216^2~17 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca1cce49c2778439d00bbf516f70386f3d3b71e5;p=pandora-kernel.git Char: synclink, remove unnecessary checks Stanse found a potential null dereference in mgsl_put_char and mgsl_write. There is a check for tty being NULL, but it is dereferenced earlier. Actually, tty cannot be NULL in .write and .put_char, so remove the tests. Signed-off-by: Jiri Slaby Cc: Andrew Morton Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed