spi: qup: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 10 Sep 2020 15:04:10 +0000 (16:04 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Sep 2020 14:50:04 +0000 (15:50 +0100)
commit4a6c7d6f940107d6383291e2cb450039790b752d
tree406f425c6ef86a94291c5d0181b7ec2f63189826
parent6c557d24fa2622bca5b950dae791d3f0d18ff2d3
spi: qup: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200910150410.750959-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c