OSDN Git Service

platform/x86: intel_ips: Remove never happen condition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Dec 2018 18:17:40 +0000 (20:17 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Dec 2018 19:40:03 +0000 (21:40 +0200)
At ->remove() stage we know that device had been instantiated properly,
so, it can't be an invalid pointer to the driver data.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_ips.c

index 221c090..d613f28 100644 (file)
@@ -1627,9 +1627,6 @@ static void ips_remove(struct pci_dev *dev)
        struct ips_driver *ips = pci_get_drvdata(dev);
        u64 turbo_override;
 
-       if (!ips)
-               return;
-
        ips_debugfs_cleanup(ips);
 
        /* Release i915 driver */