]> git.baikalelectronics.ru Git - kernel.git/commit
PCI Hotplug: cpqhp_pushbutton_thread(): remove a pointless if() check
authorAdrian Bunk <bunk@kernel.org>
Wed, 24 Oct 2007 16:25:00 +0000 (18:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Nov 2007 21:35:17 +0000 (13:35 -0800)
commitfd46e54f4e255706a01a7f377b7507ac5bab36a2
tree74103fb4036fb5d31e5a331d08c7b8d126f793a7
parent447ac8faf31f6fcf617eb34080b72382bcb19322
PCI Hotplug: cpqhp_pushbutton_thread(): remove a pointless if() check

The Coverity checker spotted that we'd have already oops'ed if "ctrl"
was NULL.

Additionally, "func" had just been checked for not being NULL.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/cpqphp_ctrl.c