]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: pxa2xx: Drop extra check of platform_get_resource() returned value
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2019 10:36:25 +0000 (13:36 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 23 Oct 2019 16:53:32 +0000 (17:53 +0100)
commit77c544d243f3b0d1ae3487ebb170c07c79734fe7
treec4221ff30caf836d69c9a18ff594415ce55b88c4
parentb9fc2d207e547664271030c1f99fc08c92fcf3f8
spi: pxa2xx: Drop extra check of platform_get_resource() returned value

The devm_ioremap_resource() has already a check for resource pointer
being NULL. No need to double check this.

Drop extra check of platform_get_resource() returned value.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20191021103625.4250-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c