Skip to content
Browse files

net: ethernet: Fix build issue with C++

When compiling with CPP, compiler complains about implicit type
conversions. Fix them.

Signed-off-by: Loic Poulain <>
  • Loading branch information...
Loic Poulain authored and jukkar committed May 23, 2019
1 parent 79cb615 commit 3653e688f31c4ef81eb4cac23d4bcf84de20dbb3
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/net/ethernet.h
@@ -486,10 +486,10 @@ static inline
enum ethernet_hw_caps net_eth_get_hw_capabilities(struct net_if *iface)
const struct ethernet_api *eth =
(struct ethernet_api *)net_if_get_device(iface)->driver_api;

if (!eth->get_capabilities) {
return 0;
return (enum ethernet_hw_caps)0;

return eth->get_capabilities(net_if_get_device(iface));

0 comments on commit 3653e68

Please sign in to comment.
You can’t perform that action at this time.