This prevents a possible compiler warning similar to
"net/eth-uclass.c:<line>:<pos>: warning: enumeration value
'env_op_*' not handled in switch [-Wswitch]".

Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---

 net/eth-uclass.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index c15cc4d..e38edd7 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -230,6 +230,8 @@ static int on_ethaddr(const char *name, const char *value, 
enum env_op op,
                        break;
                case env_op_delete:
                        memset(pdata->enetaddr, 0, 6);
+               default:
+                       break; /* ignore */
                }
        }
 
-- 
2.7.3

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to