aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring/smctr.h
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 21:13:01 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 22:49:21 -0500
commitad7bf428328d360b54e0d5f5fc7a9c0a6cf3b7fe (patch)
tree4860ebd4ff5455bf8f36d9837661720d80bd8565 /drivers/net/tokenring/smctr.h
parent7f50ca07fffdfa8f74ff62e54bf569c745e906e5 (diff)
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>
Diffstat (limited to 'drivers/net/tokenring/smctr.h')
-rw-r--r--drivers/net/tokenring/smctr.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/tokenring/smctr.h b/drivers/net/tokenring/smctr.h
index 52df7dd815cc..6e5700ab4fc3 100644
--- a/drivers/net/tokenring/smctr.h
+++ b/drivers/net/tokenring/smctr.h
@@ -977,7 +977,6 @@ typedef struct net_local {
977 __u8 monitor_state_ready; 977 __u8 monitor_state_ready;
978 __u16 ring_status; 978 __u16 ring_status;
979 __u8 ring_status_flags; 979 __u8 ring_status_flags;
980 __u8 current_ring_status;
981 __u8 state; 980 __u8 state;
982 981
983 __u8 join_state; 982 __u8 join_state;