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-Tag: v2.6.27-rc1~969^2~291 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9d45abe1c2949183e5d9cb25721bf1c42c7b5e3b;p=linux-2.6-omap-h63xx.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 f27fd200933..06d8ea5992d 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 */