net: explicit cast of multicast bit clearing
authorAndy Green <andy@warmcat.com>
Thu, 17 May 2018 13:49:47 +0000 (21:49 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 20 May 2018 22:21:24 +0000 (00:21 +0200)
commitbeb4076567441bb6f936f99f442c2a8de911bb3c
tree8fe26ba076521fdd1940dd2e961c9033ab1a94ee
parentc779ebdca0e4765158bd1eaa6f65c9d714605fae
net: explicit cast of multicast bit clearing

GCC 8.1 warned:

rte_ether.h:213:13:
warning: conversion from 'int' to 'uint8_t'
{aka 'unsigned char'} may change value [-Wconversion]
  addr[0] &= ~ETHER_GROUP_ADDR;

Fixes: 7ef007291004 ("ethdev: random MAC address")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_net/rte_ether.h