mtd: rawnand: ams-delta: Drop useless local variable
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 12 Feb 2020 00:39:27 +0000 (01:39 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2020 15:17:53 +0000 (16:17 +0100)
commitedfd8d9c763f5f91cda663e89f34dccacd8eb586
treec07ca487bbc78dbe929c26271966b064e9a89a31
parentd1b1a8f73a21c7807b23144f41174b71a5a60a40
mtd: rawnand: ams-delta: Drop useless local variable

For consistency with adjacent code patterns used in the driver probe
function, store data GPIO array pointer directly in a respective field
of the driver private structure instead of storing it intermediately
in a local variable for error checking.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200212003929.6682-13-jmkrzyszt@gmail.com
drivers/mtd/nand/raw/ams-delta.c