mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
0b8a6aeab9
commit
1d5caaa853
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue