diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 14:11:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 10:00:42 +0100 |
commit | 215a9c78ae92c0e33261f7973d52d70d9eeb367c (patch) | |
tree | 358794c91a7f1a08cfb34cd375d26366919b5852 /drivers/isdn/hardware/eicon | |
parent | drivers/isdn/hisax: fix sparse warning: Should it be static? (diff) | |
download | linux-215a9c78ae92c0e33261f7973d52d70d9eeb367c.tar.xz linux-215a9c78ae92c0e33261f7973d52d70d9eeb367c.zip |
drivers/isdn/hardware/icon: fix sparse warning: cast truncates bits
Fix this sparse warning:
drivers/isdn/hardware/eicon/debug.c:1201:32: warning: cast truncates bits from constant value (1000 becomes 0)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/eicon')
-rw-r--r-- | drivers/isdn/hardware/eicon/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/hardware/eicon/debug.c b/drivers/isdn/hardware/eicon/debug.c index 84318ec8d13e..33ce89eed65b 100644 --- a/drivers/isdn/hardware/eicon/debug.c +++ b/drivers/isdn/hardware/eicon/debug.c @@ -1198,7 +1198,7 @@ int SuperTraceASSIGN (void* AdapterHandle, byte* data) { pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); - pC->xbuffer[8] = (byte)DIVA_MAX_MANAGEMENT_TRANSFER_SIZE; + pC->xbuffer[8] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE & 0xFF); pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); pC->xbuffer[10] = 0; |