aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2022-04-20 13:34:19 +0300
committerPratyush Yadav <[email protected]>2022-04-27 14:57:35 +0530
commitbffabd1c727d663adf67ea762acc0e57164b3281 (patch)
tree995cbd4bbec279ebdcead882ac28fe918e8b7a9b /lib/mpi/mpi-sub-ui.c
parentd0ddd88438d242de0de58b24eb9422e4ba183023 (diff)
mtd: spi-nor: core: Use auto-detection only once
In case spi_nor_match_name() returned NULL, the auto detection was issued twice. There's no reason to try to detect the same chip twice, do the auto detection only once. Signed-off-by: Tudor Ambarus <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions