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 <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wang Chen 2008-06-17 21:12:48 -07:00 committed by David S. Miller
parent cb61cb9b8b
commit 9d45abe1c2
1 changed files with 2 additions and 2 deletions

View File

@ -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 */