summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJie Pan <panjie5@jd.com>2019-04-10 14:20:55 +0800
committerThomas Monjalon <thomas@monjalon.net>2019-04-19 23:07:17 +0200
commitc629829f026dd0215db30a34fadfef3830932dd6 (patch)
tree1eddbfc35f1df0a4ec366bc64689d047a1b64157 /kernel
parent8ce1fdea093c4f33c21ca6a42f8eb9cccac7441e (diff)
downloaddpdk-draft-windows-c629829f026dd0215db30a34fadfef3830932dd6.zip
dpdk-draft-windows-c629829f026dd0215db30a34fadfef3830932dd6.tar.gz
dpdk-draft-windows-c629829f026dd0215db30a34fadfef3830932dd6.tar.xz
kni: fix type for MAC address
The type for MAC address should be unsigned. Fixes: 1cfe212ed17a ("kni: support MAC address change") Cc: stable@dpdk.org Signed-off-by: Jie Pan <panjie5@jd.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Rami Rosen <ramirose@gmail.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/kni/kni_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c
index 31845e1..b6f474d 100644
--- a/kernel/linux/kni/kni_misc.c
+++ b/kernel/linux/kni/kni_misc.c
@@ -447,7 +447,7 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num,
ether_addr_copy(net_dev->dev_addr, kni->lad_dev->dev_addr);
else {
/* if user has provided a valid mac address */
- if (is_valid_ether_addr((unsigned char *)(dev_info.mac_addr)))
+ if (is_valid_ether_addr(dev_info.mac_addr))
memcpy(net_dev->dev_addr, dev_info.mac_addr, ETH_ALEN);
else
/*