]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
spi: pxa2xx: drv_data can't be NULL in ->remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2020 15:45:56 +0000 (17:45 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2020 22:19:38 +0000 (22:19 +0000)
commit3d24b2a470466aa901ba8354468fc1899259fd84
tree31cddda3509bd6e55cd84b170fbd7e3b53440294
parent14af1df3b03309f6204661e12c40cdf71bc8f773
spi: pxa2xx: drv_data can't be NULL in ->remove()

There is no need for drv_data check against NULL, since it won't happen.
Remove useless check.

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