diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 08:11:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 04:00:42 -0500 |
commit | 215a9c78ae92c0e33261f7973d52d70d9eeb367c (patch) | |
tree | 358794c91a7f1a08cfb34cd375d26366919b5852 /drivers/isdn/hardware | |
parent | e86a6a1b7849217bb3b1ef725c7fee86ed6dae33 (diff) |
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')
-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) { | |||
1198 | pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); | 1198 | pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); |
1199 | pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); | 1199 | pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); |
1200 | pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); | 1200 | pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); |
1201 | pC->xbuffer[8] = (byte)DIVA_MAX_MANAGEMENT_TRANSFER_SIZE; | 1201 | pC->xbuffer[8] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE & 0xFF); |
1202 | pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); | 1202 | pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); |
1203 | pC->xbuffer[10] = 0; | 1203 | pC->xbuffer[10] = 0; |
1204 | 1204 | ||