aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-03 20:17:40 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-03 21:40:03 +0200
commit1d5caaa853ea8315950a6dd952d7ec34394f4d60 (patch)
treea9cc5b06fd6fd044fcc4c3504dfd002b7d7b3b04 /drivers
parentplatform/x86: intel_ips: NULL check before some freeing functions is not needed (diff)
downloadlinux-dev-1d5caaa853ea8315950a6dd952d7ec34394f4d60.tar.xz
linux-dev-1d5caaa853ea8315950a6dd952d7ec34394f4d60.zip
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')
-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 */