We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40ba3c9 + e896c04 commit 9a8afbeCopy full SHA for 9a8afbe
drivers/spi/spi-amd.c
@@ -670,7 +670,6 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
670
const struct spi_mem_op *op)
671
{
672
struct amd_spi *amd_spi;
673
- int ret;
674
675
amd_spi = spi_controller_get_devdata(mem->spi->controller);
676
@@ -689,10 +688,10 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
689
688
amd_spi_mem_data_out(amd_spi, op);
690
break;
691
default:
692
- ret = -EOPNOTSUPP;
+ return -EOPNOTSUPP;
693
}
694
695
- return ret;
+ return 0;
696
697
698
static const struct spi_controller_mem_ops amd_spi_mem_ops = {
0 commit comments