[PATCH] mtd: mchp48l640: silence some uninitialized variable warnings

Miquel Raynal miquel.raynal at bootlin.com
Thu Jul 15 15:50:36 PDT 2021


On Fri, 2021-06-18 at 13:42:07 UTC, Dan Carpenter wrote:
> Smatch complains that zero length read/writes will lead to an
> uninitalized return value.  I don't know if that's possible, but
> it's nicer to return a zero literal anyway so let's do that.
> 
> Fixes: 88d125026753 ("mtd: devices: add support for microchip 48l640 EERAM")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> Reviewed-by: Fabio Estevam <festevam at gmail.com>
> Reviewed-by: Heiko Schocher <hs at denx.de>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.

Miquel



More information about the linux-mtd mailing list