mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
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>
This commit is contained in:
parent
71ea0e3ac7
commit
1d9d62959f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user