[PATCH 2/3] mtd: rawnand: nandsim: Merge repeat codes in ns_switch_state

Richard Weinberger richard at nod.at
Sat Dec 25 13:10:56 PST 2021


----- Ursprüngliche Mail -----
> Von: s921975628 at gmail.com
> An: "richard" <richard at nod.at>, "Vignesh Raghavendra" <vigneshr at ti.com>, "Miquel Raynal" <miquel.raynal at bootlin.com>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>, "linux-kernel" <linux-kernel at vger.kernel.org>, "RinHizakura"
> <s921975628 at gmail.com>
> Gesendet: Samstag, 25. Dezember 2021 11:06:48
> Betreff: [PATCH 2/3] mtd: rawnand: nandsim: Merge repeat codes in ns_switch_state

> From: RinHizakura <s921975628 at gmail.com>
> 
> The moving block of codes is shared between both 'if' and 'else' condition,
> we can move it out to reduce the duplication.
> 
> Signed-off-by: RinHizakura <s921975628 at gmail.com>
> ---
> drivers/mtd/nand/raw/nandsim.c | 19 ++++++-------------
> 1 file changed, 6 insertions(+), 13 deletions(-)

Reviewed-by: Richard Weinberger <richard at nod.at>

Thanks,
//richard



More information about the linux-mtd mailing list