Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: intel_ips: Remove never happen condition

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>

-3
-3
drivers/platform/x86/intel_ips.c
··· 1627 1627 struct ips_driver *ips = pci_get_drvdata(dev); 1628 1628 u64 turbo_override; 1629 1629 1630 - if (!ips) 1631 - return; 1632 - 1633 1630 ips_debugfs_cleanup(ips); 1634 1631 1635 1632 /* Release i915 driver */