summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-10-05 15:56:01 +0200
committerJagan Teki <jagan@amarulasolutions.com>2021-10-23 15:47:33 +0530
commita67b3719f32673a9890700c72b980acbd2749e49 (patch)
tree5dce2746635da38ef9d1ab95dca4e6f5ac582941 /drivers/ddr/microchip/ddr2.c
parentf57277997bd8036d45337ec60b08a025a0473f89 (diff)
mtd: spi-flash: Check for zero length in legacy spi_flash_*()
Check for zero length in the legacy spi_flash_read() / spi_flash_write() / spi_flash_erase() functions. On zero length, return 0 immediately, don't call the underlying method. Rationale: - these legacy functions call the _read(), _write() and _erase() methods of struct mtd - the DM callers of these methods already check for zero length - making all callers of these methods check for zero length makes it possible to remove the check from implementations of these _read(), _write() and _erase() methods Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions