summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/pvpanic/pvpanic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/misc/pvpanic/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c
index 29f63a31edbc..b6bd6abc2952 100644
--- a/drivers/misc/pvpanic/pvpanic.c
+++ b/drivers/misc/pvpanic/pvpanic.c
@@ -65,9 +65,6 @@ static void pvpanic_remove(void *param)
struct pvpanic_instance *pi_cur, *pi_next;
struct pvpanic_instance *pi = param;
- if (!pi)
- return;
-
spin_lock(&pvpanic_lock);
list_for_each_entry_safe(pi_cur, pi_next, &pvpanic_list, list) {
if (pi_cur == pi) {