]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Don't check for zero length in spi_nor_write() / spi_nor_erase()
authorMarek Behún <marek.behun@nic.cz>
Tue, 5 Oct 2021 13:56:02 +0000 (15:56 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 23 Oct 2021 10:17:33 +0000 (15:47 +0530)
commit7398c1b758e70708edc1d0aced2e2b07ded1ed7e
treed8c2c0b05a9f8d16980bb2c41b751a1e3078636d
parenta67b3719f32673a9890700c72b980acbd2749e49
mtd: spi-nor-core: Don't check for zero length in spi_nor_write() / spi_nor_erase()

This check is already done in all callers: mtdcore's mtd_write() /
mtd_erase(), legacy spi_nor_write() / spi_flash_erase(). No reason to do
this here as well.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
drivers/mtd/spi/spi-nor-core.c