]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: placate "$VARIABLE is used uninitialized" warnings
authorAdam Borowski <kilobyte@angband.pl>
Mon, 24 Oct 2022 09:20:26 +0000 (11:20 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 7 Nov 2022 15:49:31 +0000 (16:49 +0100)
commit9261055de147af5215e2f706de0ff342154384dd
treea3ef4aa9630d45a953fb8f0c05827ba1c94f7e97
parentdc7a76e44cc494d6b036f5dedb741482d80a78a1
mtd: rawnand: placate "$VARIABLE is used uninitialized" warnings

The compiler is not smart enough to notice that it's impossible for
them to be actually used uninitialized.  Which exact variables trip
here varies depending on random surrounding code; none triggered in
6.1-rc1 but 6.1-rc2 fails on three of these five, despite variables
declared in the very same line having identical flow.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221024092026.42123-1-kilobyte@angband.pl
drivers/mtd/nand/raw/nand_base.c