Re: [PATCH v2] mtd: rawnand: intel: check the mtd name only after setting the variable

2021-01-14 Thread Miquel Raynal
On Wed, 2021-01-06 at 14:09:43 UTC, Martin Blumenstingl wrote: > Move the check for mtd->name after the mtd variable has actually been > initialized. > > While here, also drop the NULL assignment to the mtd variable as it's > overwritten later on anyways and the NULL value is never read. > > Fixe

[PATCH v2] mtd: rawnand: intel: check the mtd name only after setting the variable

2021-01-06 Thread Martin Blumenstingl
Move the check for mtd->name after the mtd variable has actually been initialized. While here, also drop the NULL assignment to the mtd variable as it's overwritten later on anyways and the NULL value is never read. Fixes: 0b1039f016e8a3 ("mtd: rawnand: Add NAND controller support on Intel LGM S