From: Andy Shevchenko Date: Mon, 3 Dec 2018 18:17:40 +0000 (+0200) Subject: platform/x86: intel_ips: Remove never happen condition X-Git-Tag: for-linus-20190104~139^2~14 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1d5caaa853ea8315950a6dd952d7ec34394f4d60;p=linux-block.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 --- 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 */