summaryrefslogtreecommitdiff
path: root/kernel/linux/kni/kni_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linux/kni/kni_misc.c')
-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
/*