Olof Johansson 81429973cf [NIU]: Cleanup PAGE_SIZE checks a bit
I get the following warning from a powerpc allyesconfig of current
mainline:

drivers/net/niu.c: In function 'niu_size_rbr':
drivers/net/niu.c:3113: warning: large integer implicitly truncated to unsigned type

PAGE_SIZE in this case is 64KB, so I don't quite get why gcc can't
tell that the line in question will never be reached.

I suggest the following instead, but I can unfortunately not do
anything but build test it.

Also, the driver does some other checks to make sure that PAGE_SIZE is
a power of two (BUILD_BUG_ON() in niu_init()), doesn't seem like that
could ever be untrue? Or are there really archs with non-power-of-two
PAGE_SIZE?

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-22 02:59:53 -07:00
..
2007-10-17 08:42:52 -07:00
2007-10-18 14:37:31 -07:00
2007-10-16 09:43:09 -07:00
2007-10-20 01:55:04 +02:00
2007-10-19 11:53:42 -07:00
2007-10-20 00:47:32 +02:00
2007-10-20 01:34:40 +02:00
2007-10-19 23:22:55 +02:00
2007-10-20 01:55:58 +02:00
2007-10-19 23:22:11 +02:00
2007-10-20 01:34:40 +02:00
2007-10-20 01:34:40 +02:00
2007-10-20 01:34:40 +02:00
2007-10-22 02:59:53 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 01:34:40 +02:00
2007-10-20 15:04:06 -07:00
2007-10-19 23:22:55 +02:00
2007-10-16 21:04:11 -04:00
2007-10-17 08:42:57 -07:00
2007-10-20 01:34:40 +02:00
2007-10-18 10:39:03 +00:00