[PATCH v2 5/6] mtd: spi-nor: simplify spi_nor_get_flash_info()
Michael Walle
mwalle at kernel.org
Mon Apr 22 02:53:35 PDT 2024
Hi,
> if (name)
> info = spi_nor_match_name(nor, name);
>
> if (!info || info->id) {
> jinfo = spi_nor_detect(nor);
> if (IS_ERR(jinfo))
> return jinfo;
>
> if (jinfo != info)
info could be NULL here. So "info &&", apart from that looks good.
> dev_warn(();
> info = jinfo;
> }
Pratyush, should I'll drop your Rb tag then.
-michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20240422/6a279b4c/attachment.sig>
More information about the linux-mtd
mailing list