drivers/net/tokenring: fix sparse warning: cast truncates bits from const value
authorHannes Eder <hannes@hanneseder.net>
Sun, 15 Feb 2009 02:13:01 +0000 (02:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 03:49:21 +0000 (19:49 -0800)
commitad7bf428328d360b54e0d5f5fc7a9c0a6cf3b7fe
tree4860ebd4ff5455bf8f36d9837661720d80bd8565
parent7f50ca07fffdfa8f74ff62e54bf569c745e906e5
drivers/net/tokenring: fix sparse warning: cast truncates bits from const value

Impact: Remove the write-only field 'current_ring_status' completely.

Fix this sparse warnings:
  drivers/net/tokenring/smctr.c:4410:52: warning: cast truncates bits from constant value (100 becomes 0)
  drivers/net/tokenring/smctr.c:4415:52: warning: cast truncates bits from constant value (400 becomes 0)
  drivers/net/tokenring/smctr.c:4420:52: warning: cast truncates bits from constant value (800 becomes 0)
  drivers/net/tokenring/smctr.c:4425:52: warning: cast truncates bits from constant value (1000 becomes 0)
  drivers/net/tokenring/smctr.c:4430:52: warning: cast truncates bits from constant value (2000 becomes 0)
  drivers/net/tokenring/smctr.c:4435:52: warning: cast truncates bits from constant value (4000 becomes 0)
  drivers/net/tokenring/smctr.c:4440:52: warning: cast truncates bits from constant value (8000 becomes 0)

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tokenring/smctr.c
drivers/net/tokenring/smctr.h