Re: [PATCH v1 11/14] mtd: spi-nor: spansion: slightly rework control flow in late_init()

From: Pratyush Yadav
Date: Mon Feb 14 2022 - 17:04:34 EST


On 10/02/22 03:26AM, Tudor.Ambarus@xxxxxxxxxxxxx wrote:
> On 2/2/22 16:58, Michael Walle wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> >
> > Increase readability of the code. Instead of returning early if the
> > flash size is smaller or equal than 16MiB and then do the fixups for
> > larger flashes, do it within the condition.
> >
>
> mm, no, I'm not sure this improves readability, I see the two equivalent.
> The original version has the benefit of no indentation. Pratyush?

I am fine with both to be honest. But Michael's reasoning does make some
sense to me. So,

Reviewed-by: Pratyush Yadav <p.yadav@xxxxxx>

--
Regards,
Pratyush Yadav
Texas Instruments Inc.