]> git.baikalelectronics.ru Git - kernel.git/commit
netdevice: change net_device->promiscuity/allmulti to unsigned int
authorWang Chen <wangchen@cn.fujitsu.com>
Wed, 18 Jun 2008 04:12:48 +0000 (21:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2008 04:12:48 +0000 (21:12 -0700)
commitde2465c9ba3d6a12436dc871fda0cc95c16dfeee
tree00bbbbcd31baaaf431b4cd2529542eb9db603fda
parentd490a33eccf3f400f839d9818d40427b1afb8135
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>
include/linux/netdevice.h