From: Wang Chen Date: Wed, 18 Jun 2008 04:12:48 +0000 (-0700) Subject: netdevice: change net_device->promiscuity/allmulti to unsigned int X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d45abe1c2949183e5d9cb25721bf1c42c7b5e3b;p=openwrt%2Fstaging%2Fblogic.git netdevice: change net_device->promiscuity/allmulti to unsigned int The comments of dev_set_allmulti/promiscuity() is that "While the count in the device remains above zero...". So negative count is useless. Fix the type of the counter from "int" to "unsigned int". Signed-off-by: Wang Chen Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index f27fd2009334..06d8ea5992df 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -595,8 +595,8 @@ struct net_device int uc_promisc; struct dev_addr_list *mc_list; /* Multicast mac addresses */ int mc_count; /* Number of installed mcasts */ - int promiscuity; - int allmulti; + unsigned int promiscuity; + unsigned int allmulti; /* Protocol specific pointers */