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

From: Michael Walle
Date: Thu Sep 07 2023 - 12:16:45 EST


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