linux/drivers/misc/pvpanic
Christophe JAILLET d208cbb002 misc/pvpanic: Remove some dead-code
'pvpanic_remove()' is referenced only by a 'devm_add_action_or_reset()'
call in 'devm_pvpanic_probe()'. So, we know that its parameter is non-NULL.

Axe the unneeded check to save a few lines of code.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/8e425618f4042a8ab8366be4d34026972e77bd40.1622911768.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-09 14:45:33 +02:00
..
Kconfig misc/pvpanic: add PCI driver 2021-03-28 14:57:11 +02:00
Makefile misc/pvpanic: add PCI driver 2021-03-28 14:57:11 +02:00
pvpanic-mmio.c misc/pvpanic: Make 'pvpanic_probe()' resource managed 2021-05-27 14:46:57 +02:00
pvpanic-pci.c misc/pvpanic: Make 'pvpanic_probe()' resource managed 2021-05-27 14:46:57 +02:00
pvpanic.c misc/pvpanic: Remove some dead-code 2021-06-09 14:45:33 +02:00
pvpanic.h misc/pvpanic: Make 'pvpanic_probe()' resource managed 2021-05-27 14:46:57 +02:00