mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
spi: tegra114: Remove unnecessary NULL-pointer checks
[ Upstream commit373c36bf79] 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:04e6bb0d6b("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> Stable-dep-of:4426e6b4ec("spi: tegra114: Don't fail set_cs_timing when delays are zero") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
34c1c01ea1
commit
bb9fd28ef0
1 changed files with 7 additions and 11 deletions
Loading…
Add table
Add a link
Reference in a new issue