From 7d66238c086441b7ce7da5d78b705d112fc6c5c1 Mon Sep 17 00:00:00 2001 From: Leonid Lobachev Date: Mon, 23 Sep 2019 11:44:07 -0700 Subject: [PATCH] staging: gasket: interrupt: remove PCI-MSIX-specific status check Devices not using MSIX don't use the msix_initialized field, don't require it to be set in the interrupt system status check. The general check for interrupts configured that follows can cover both MSIX and device-managed interrupts. Change-Id: I83a86cb4db7cea30c30377dd82b033ef372d69c0 Signed-off-by: Todd Poynor --- gasket_interrupt.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gasket_interrupt.c b/gasket_interrupt.c index 3cf7235..9d0ad2c 100644 --- a/gasket_interrupt.c +++ b/gasket_interrupt.c @@ -488,11 +488,6 @@ int gasket_interrupt_system_status(struct gasket_dev *gasket_dev) return GASKET_STATUS_DEAD; } - if (!gasket_dev->interrupt_data->msix_configured) { - dev_dbg(gasket_dev->dev, "Interrupt not initialized\n"); - return GASKET_STATUS_LAMED; - } - if (gasket_dev->interrupt_data->num_configured != gasket_dev->interrupt_data->num_interrupts) { dev_dbg(gasket_dev->dev,