Commit fce6900b authored by Joe Hershberger's avatar Joe Hershberger Committed by Simon Glass
Browse files

net: Use int instead of u8 for boolean flag

On some archs masking the parameter is inefficient, so don't use u8.
Signed-off-by: default avatarJoe Hershberger <>
Reported-by: default avatarSimon Glass <>
Reviewed-by: default avatarSimon Glass <>
parent 05324a48
......@@ -178,7 +178,7 @@ void eth_halt(void); /* stop SCC */
const char *eth_get_name(void); /* get name of current device */
int eth_mcast_join(IPaddr_t mcast_addr, u8 join);
int eth_mcast_join(IPaddr_t mcast_addr, int join);
u32 ether_crc(size_t len, unsigned char const *p);
......@@ -321,7 +321,7 @@ int eth_initialize(bd_t *bis)
* mcast_addr: multicast ipaddr from which multicast Mac is made
* join: 1=join, 0=leave.
int eth_mcast_join(IPaddr_t mcast_ip, u8 join)
int eth_mcast_join(IPaddr_t mcast_ip, int join)
u8 mcast_mac[6];
if (!eth_current || !eth_current->mcast)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment