[PATCH v2 11/41] mtd: spi-nor: drop .parse_sfdp

Michael Walle mwalle at kernel.org
Wed Sep 6 23:55:31 PDT 2023


> the condition looks broken. the method returns bool, but here you 
> return
> size_t probably. And when size is zero one shall parse sfdp, not the
> other way around.
> 
> maybe return (nor->info->size == 0)?

Yeah, good catch.

-michael



More information about the linux-mtd mailing list