]> Git Repo - J-u-boot.git/commit
spi: sf_ops: Check the return value from spi_flash_cmd_read_status()
authorFabio Estevam <[email protected]>
Tue, 17 Nov 2015 19:13:33 +0000 (17:13 -0200)
committerJagan Teki <[email protected]>
Tue, 17 Nov 2015 19:25:29 +0000 (00:55 +0530)
commita668a164ffb73db6f566f50e9440c872d5293742
tree7673473c7c76d8504338d667222c07a412117195
parent5168721e584e1fc104ccc3b1a027e8973a18f65b
spi: sf_ops: Check the return value from spi_flash_cmd_read_status()

We should check the return value from spi_flash_cmd_read_status() and
propagate it in the case of error.

This fixes a defect caught by Coverity.

Reported-by: Tom Rini <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
drivers/mtd/spi/sf_ops.c
This page took 0.03468 seconds and 4 git commands to generate.