mtd: rawnand: ndfc: fix gcc uninitialized var
Subsystems (2)
PATCH 1/1 mtd: rawnand: ndfc: fix gcc uninitialized var
Now that this can be built with COMPILE_TEST, an unassigned variable was found. Set to 0 to fix the W=1 error under GCC.
Reported-by kernel test robot <[email protected]>
Signed-off-by Rosen Penev <[email protected]>
--- drivers/mtd/nand/raw/ndfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/ndfc.c +1 -1
@@ -188,7 +188,7 @@ static int ndfc_probe(struct platform_device *ofdev)const __be32 *reg;u32 ccr;u32 cs; -int err, len; +int err, len =0 ;/* Read the reg property to get the chip select */ reg =of_get_property (ofdev->dev.of_node,"reg" , &len);
Signature · 1 line
2.54.0
Quoted 4 lines · Rosen Penev
Now that this can be built with
COMPILE_TEST, an unassigned variable was found. Set to 0 to fix the W=1 error under GCC.
Applied to mtd/fixes, thanks!
[1/1] mtd: rawnand: ndfc: fix gcc uninitialized var
commit: cceca8cb776b03e83985578f84bd730c30d57f70
Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl