[U-Boot] [RFC PATCH 2/7] net: dm: Ignore unknown env_op_* constants
Bernhard Nortmann
bernhard.nortmann at web.de
Mon Jul 11 20:14:49 CEST 2016
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.nortmann at 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
More information about the U-Boot
mailing list