From: Adrian Bunk Date: Wed, 17 Oct 2007 06:29:25 +0000 (-0700) Subject: n_hdlc.c: fix check-after-use X-Git-Tag: v2.6.24-rc1~652 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827afdf093cce59bbbf9dc9f1c2eab86e2232b9e;p=pandora-kernel.git n_hdlc.c: fix check-after-use The Coverity checker spotted that we'd have already oops'ed if "tty" was NULL. Since "tty" can't be NULL when we reach this line of code this patch removes the NULL check. Signed-off-by: Adrian Bunk Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed