[U-Boot] [RFC PATCH 2/7] net: dm: Ignore unknown env_op_* constants

Bernhard Nortmann bernhard.nortmann at web.de
Fri Jul 15 09:38:19 CEST 2016


Hi Simon!

Am 15.07.2016 um 05:19 schrieb Simon Glass:
> [...]
> Presumably hitting the default would be an internal error. So in that
> case there is no point in returning an error, I think, and what you
> have is best.
>
> Regards,
> Simon


It's not pretty, but a "catch all" solution. The alternative is to 
handle all
possible env_op_* constants explicitly, even if they don't affect (or relate
to) eth*_addr at all. But that would mean this code has to be touched and
adjusted every time someone comes up with a new env_op_*...

Regards, B. Nortmann



More information about the U-Boot mailing list