]> git.baikalelectronics.ru Git - uboot.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)
commit91b67361acd277aa50db2708a8b54fac60669b9b
treed8c2c0b05a9f8d16980bb2c41b751a1e3078636d
parent223a69c87bf7e7484d1274f4acdeb532db55715b
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