summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-03-22 17:09:05 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:11 -0600
commitfce6900b492c18962a098eae837ea345b75f9a75 (patch)
tree8437b8c78a2076cf57252e970b8638a6b5298f32 /net/eth.c
parent05324a488b09c57e7bcc70ae528cd7c098c3e3d3 (diff)
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: Joe Hershberger <joe.hershberger@ni.com> Reported-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index 9ad15cd8a3..b86994e9eb 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -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)