diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2021-01-06 15:09:43 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-01-14 16:44:39 +0100 |
commit | 18f62614308be69a2752afb5f6bbad60096ad774 (patch) | |
tree | ac7a8af7978ce42eb468e826abcade66a6ca1444 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3c97be6982e689d7b2430187a11f8c78e573abdb (diff) |
mtd: rawnand: intel: check the mtd name only after setting the variable
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 SoC")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210106140943.98072-1-martin.blumenstingl@googlemail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions