Commit 45eef6be authored by Alexander Danilenko's avatar Alexander Danilenko Committed by Greg Kroah-Hartman
Browse files

spi: tegra114: Remove unnecessary NULL-pointer checks



[ Upstream commit 373c36bf ]

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: 04e6bb0d ("spi: modify set_cs_timing parameter")
Signed-off-by: default avatarAlexander Danilenko <al.b.danilenko@gmail.com>
Link: https://lore.kernel.org/r/20230815092058.4083-1-al.b.danilenko@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Stable-dep-of: 4426e6b4 ("spi: tegra114: Don't fail set_cs_timing when delays are zero")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9f28182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment