• Hannes Eder's avatar
    drivers/net/tokenring: fix sparse warning: cast truncates bits from const value · ad7bf428
    Hannes Eder authored
    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: default avatarHannes Eder <hannes@hanneseder.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ad7bf428
smctr.c 187 KB