summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel_ips.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-03 21:17:40 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-03 22:40:03 +0300
commit1d5caaa853ea8315950a6dd952d7ec34394f4d60 (patch)
treea9cc5b06fd6fd044fcc4c3504dfd002b7d7b3b04 /drivers/platform/x86/intel_ips.c
parent0b8a6aeab9255a43b2a34b386d95004665e0fe9a (diff)
downloadlinux-1d5caaa853ea8315950a6dd952d7ec34394f4d60.tar.xz
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>
Diffstat (limited to 'drivers/platform/x86/intel_ips.c')
-rw-r--r--drivers/platform/x86/intel_ips.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index 221c090ac471..d613f287b420 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -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 */