]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spi-nor: use local variable for struct device
authorTudor Ambarus <tudor.ambarus@linaro.org>
Mon, 11 Nov 2024 11:19:45 +0000 (13:19 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Fri, 6 Dec 2024 16:08:25 +0000 (16:08 +0000)
commit07c888838ea34662b9fd4a2698ef24ff59f0a630
treea90ea22bcd0c4eadf6972ff64b3ac3ddf31c9028
parente7f4e924f46d41952271b3f97e51596a54e48775
mtd: spi-nor: use local variable for struct device

Use a local variable for the struct device pointers to avoid
dereferencing.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20241111111946.9048-2-tudor.ambarus@linaro.org
drivers/mtd/spi-nor/core.c