Re: [PATCH v2 5/6] mtd: spi-nor: simplify spi_nor_get_flash_info()

From: Michael Walle
Date: Mon Apr 22 2024 - 05:53:54 EST


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

Attachment: signature.asc
Description: PGP signature