Skip to content

Commit 9a8afbe

Browse files
committed
spi-nand/spi-mem DTR support
Merge series from Miquel Raynal <[email protected]>: Here is a (big) series supposed to bring DTR support in SPI-NAND.
2 parents 40ba3c9 + e896c04 commit 9a8afbe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/spi/spi-amd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
670670
const struct spi_mem_op *op)
671671
{
672672
struct amd_spi *amd_spi;
673-
int ret;
674673

675674
amd_spi = spi_controller_get_devdata(mem->spi->controller);
676675

@@ -689,10 +688,10 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
689688
amd_spi_mem_data_out(amd_spi, op);
690689
break;
691690
default:
692-
ret = -EOPNOTSUPP;
691+
return -EOPNOTSUPP;
693692
}
694693

695-
return ret;
694+
return 0;
696695
}
697696

698697
static const struct spi_controller_mem_ops amd_spi_mem_ops = {

0 commit comments

Comments
 (0)