spi: tegra114: Remove unnecessary NULL-pointer checks
authorAlexander Danilenko <al.b.danilenko@gmail.com>
Tue, 15 Aug 2023 09:20:58 +0000 (12:20 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Aug 2023 18:55:00 +0000 (19:55 +0100)
commit373c36bf7914e3198ac2654dede499f340c52950
tree9ed5f056568694d15a96a918324feaea28220fe7
parentf5b19425cdfdeab58c9c7b68a48dc6fb60e258d1
spi: tegra114: Remove unnecessary NULL-pointer checks

cs_setup, cs_hold and cs_inactive points to fields of spi_device struct,
so there is no sense in checking them for NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 04e6bb0d6bb1 ("spi: modify set_cs_timing parameter")
Signed-off-by: Alexander Danilenko <al.b.danilenko@gmail.com>
Link: https://lore.kernel.org/r/20230815092058.4083-1-al.b.danilenko@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra114.c