]> git.baikalelectronics.ru Git - kernel.git/commit
ip2: remove unneeded NULL check
authorDan Carpenter <error27@gmail.com>
Thu, 12 Aug 2010 20:48:57 +0000 (13:48 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 01:17:20 +0000 (18:17 -0700)
commit1f116f276d1b1a30e1f36b7445e9993be491dcc3
treec91728532925b176ceb970f3278e5c267e3b669c
parent8b6f90a85e2019e16678f2737b63f02973e67ac0
ip2: remove unneeded NULL check

We don't pass NULL tty pointers to the close function, and anyway we
already dereferenced it at this point.  This check can be removed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: "Michael H. Warfield" <mhw@wittsend.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/ip2/ip2main.c