]> git.baikalelectronics.ru Git - kernel.git/commit
n_hdlc.c: fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Wed, 17 Oct 2007 06:29:25 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:55 +0000 (08:42 -0700)
commit8e4512d058dbae67762197d6f68c158ccf1e7a4b
tree287510107cb816eb7529da88f961a4b49ffe673d
parent0f012589fb294ea3c428201f6b1af96ab11bc068
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 <bunk@kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/n_hdlc.c