[U-Boot] [PATCH v3 077/108] spi: ich: Move the protection/lockdown code into a function
Simon Glass
sjg at chromium.org
Tue Nov 19 17:53:22 UTC 2019
Hi Bin,
On Tue, 19 Nov 2019 at 05:53, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> On Mon, Oct 21, 2019 at 11:40 AM Simon Glass <sjg at chromium.org> wrote:
> >
> > Reduce the size of the probe function but putting this code into its own
> > function.
> >
>
> It's unclear to me why this brings any benefit? The size of the probe
> function indeed is reduced, but whole file size does not change, no?
It's just that it gives the code a name and groups it in a function.
It is normally better to have shorter functions and this one seemed to
be getting a bit long and unfocussed.
Regards,
Simon
More information about the U-Boot
mailing list