Re: [PATCH net 03/10] net: hns: add uc match for debug ports
From: David Miller
Date: Mon Mar 21 2016 - 11:41:03 EST
From: Yisen Zhuang <Yisen.Zhuang@xxxxxxxxxx>
Date: Mon, 21 Mar 2016 19:06:34 +0800
> + (void)hns_mac_set_promisc(mac_cb, (u8)!!en);
This cast to void is unnecssary.
> +static void hns_gmac_set_uc_match(void *mac_drv, u16 en)
> +{
> + struct mac_driver *drv = (struct mac_driver *)mac_drv;
Casts from void pointers are unnecessary.
> +{
> + struct mac_driver *drv = (struct mac_driver *)mac_drv;
Likewise.