On Mon, Jun 24, 2019 at 1:50 AM Vladimir Oltean <olte...@gmail.com> wrote:
>
> In tsec_init, the MAC address is retrieved from 2 different structures
> depending on whether DM_ETH is enabled or not.
>
> But since the field name is the same inside both structures, we can
> conditionally define the structure of the correct type and simplify the
> assignments.
>
> Signed-off-by: Vladimir Oltean <olte...@gmail.com>
> ---
>  drivers/net/tsec.c | 11 ++---------
>  1 file changed, 2 insertions(+), 9 deletions(-)
>

Reviewed-by: Bin Meng <bmeng...@gmail.com>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to