diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-02-25 20:23:42 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-02-28 15:10:19 +0300 |
commit | 1d9d62959f1b52eb939df38b9fda8beea455c751 (patch) | |
tree | 03c5e61e859688253936aa4e4453205b666e2f03 | |
parent | 71ea0e3ac70a50b0c56105e116ed903f8e504e8f (diff) | |
download | linux-1d9d62959f1b52eb939df38b9fda8beea455c751.tar.xz |
spi: pxa2xx-pci: Drop redundant NULL check in ->probe()
Since all platforms are using ->setup() function, drop unneeded check.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220225172350.69797-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-pxa2xx-pci.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c index 4d617ad72bca..90b95e49a164 100644 --- a/drivers/spi/spi-pxa2xx-pci.c +++ b/drivers/spi/spi-pxa2xx-pci.c @@ -255,11 +255,9 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev, return ret; c = &spi_info_configs[ent->driver_data]; - if (c->setup) { - ret = c->setup(dev, c); - if (ret) - return ret; - } + ret = c->setup(dev, c); + if (ret) + return ret; memset(&spi_pdata, 0, sizeof(spi_pdata)); spi_pdata.num_chipselect = c->num_chipselect; |