mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
mtd: rawnand: sunxi: Make sure ret is initialized in sunxi_nfc_read_byte()
Fixes the following smatch warning: drivers/mtd/nand/raw/sunxi_nand.c:551 sunxi_nfc_read_byte() error: uninitialized symbol 'ret'. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
cf3e3fd2e9
commit
06c8b5dc93
@ -544,7 +544,7 @@ static void sunxi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf,
|
|||||||
|
|
||||||
static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd)
|
static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd)
|
||||||
{
|
{
|
||||||
uint8_t ret;
|
uint8_t ret = 0;
|
||||||
|
|
||||||
sunxi_nfc_read_buf(mtd, &ret, 1);
|
sunxi_nfc_read_buf(mtd, &ret, 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user