net: Convert struct net_device uc_promisc to bool
No need to use int, its uses are boolean. May save a few bytes one day. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
48daec034b
commit
2d348d1f56
@ -4497,10 +4497,10 @@ void __dev_set_rx_mode(struct net_device *dev)
|
||||
*/
|
||||
if (!netdev_uc_empty(dev) && !dev->uc_promisc) {
|
||||
__dev_set_promiscuity(dev, 1);
|
||||
dev->uc_promisc = 1;
|
||||
dev->uc_promisc = true;
|
||||
} else if (netdev_uc_empty(dev) && dev->uc_promisc) {
|
||||
__dev_set_promiscuity(dev, -1);
|
||||
dev->uc_promisc = 0;
|
||||
dev->uc_promisc = false;
|
||||
}
|
||||
|
||||
if (ops->ndo_set_multicast_list)
|
||||
|
Reference in New Issue
Block a user