From cfc1c34585492179e9e74a0b64d1be285646be67 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Thu, 4 Jul 2019 16:02:39 +0300 Subject: [PATCH] pinctrl: intel: Drop double check for data in intel_pinctrl_probe_by_uid() There is no need to duplicate the check which is done in the common intel_pinctrl_probe(). Signed-off-by: Andy Shevchenko Acked-by: Mika Westerberg --- drivers/pinctrl/intel/pinctrl-intel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index 5e46042..335b08d 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -1418,8 +1418,6 @@ int intel_pinctrl_probe_by_uid(struct platform_device *pdev) table = (const struct intel_pinctrl_soc_data **)id->driver_data; data = table[pdev->id]; } - if (!data) - return -ENODEV; return intel_pinctrl_probe(pdev, data); } -- 2.7.4