lkml.org 
[lkml]   [2024]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 5/6] mtd: spi-nor: simplify spi_nor_get_flash_info()
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2024-05-27 17:55    [W:2.145 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site