[U-Boot] [PATCH 5/8] net: tsec: Common handling of MAC station address for DM_ETH
Bin Meng
bmeng.cn at gmail.com
Sat Jul 13 04:55:11 UTC 2019
On Mon, Jun 24, 2019 at 1:50 AM Vladimir Oltean <olteanv at 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 <olteanv at gmail.com>
> ---
> drivers/net/tsec.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list