pci/hotplug/pnv-php: Remove WARN_ON() in pnv_php_put_slot()

am: 4ee3508f7a

Change-Id: I284c8381fe4eafd18062463a0e204f335dc3ccca
This commit is contained in:
Gavin Shan
2017-03-15 02:23:10 +00:00
committed by android-build-merger

View File

@@ -82,7 +82,7 @@ static void pnv_php_free_slot(struct kref *kref)
static inline void pnv_php_put_slot(struct pnv_php_slot *php_slot)
{
if (WARN_ON(!php_slot))
if (!php_slot)
return;
kref_put(&php_slot->kref, pnv_php_free_slot);