misc: pti, pci drvdata cannot be NULL in ->remove
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Aug 2012 19:47:30 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 20:27:51 +0000 (13:27 -0700)
commitc6333cc65d12fddf9cf79de3950b65bc142784e1
treeb7348319d5d2dd37a5d345306e839ccf5bf0100b
parentd15684228a1f82555fcd3c5fcd86a0884bad29e3
misc: pti, pci drvdata cannot be NULL in ->remove

As we set drvdata unconditionally in ->probe, we need not check if it
is NULL. Let us remove the check.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: J Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pti.c