[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b843818e776a33d58db8b969270a5cda@kernel.org>
Date: Thu, 07 Sep 2023 08:55:31 +0200
From: Michael Walle <mwalle@...nel.org>
To: Tudor Ambarus <tudor.ambarus@...aro.org>
Cc: Pratyush Yadav <pratyush@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org
Subject: Re: [PATCH v2 11/41] mtd: spi-nor: drop .parse_sfdp
> 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
Powered by blists - more mailing lists