commit | 9953c79e17f35bbf341ccbcff563340919962cef | [log] [tgz] |
---|---|---|
author | Vladimir Oltean <olteanv@gmail.com> | Fri Jul 19 00:29:57 2019 +0300 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Thu Jul 25 13:13:31 2019 -0500 |
tree | 57cd4ad404c0ec269ca6eff0719eda7794c0bfcf | |
parent | 8ec8eaa03e5ad227143d5b4dbe00406cf3113f45 [diff] |
net: tsec: Common handling of MAC station address for DM_ETH 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@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>