spi: spidev: Remove redundant initialization of variable status
authorJay Fang <f.fangjian@huawei.com>
Wed, 9 Sep 2020 06:08:24 +0000 (14:08 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Sep 2020 15:27:46 +0000 (16:27 +0100)
commit4ebf8816e35d63db723d95f8e49d8455be926c36
tree0388e0f72656853dd7664081b7dfde3509ff15e3
parentb0b71a6f5d655f2ffe79f12425779733e83e20f2
spi: spidev: Remove redundant initialization of variable status

In spidev_read() and spidev_write(), the variable status 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.

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/1599631704-53232-1-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c