Skip to content

Commit

Permalink
staging/vt6656: Fix sparse warning constant 0xffffffff00000000U is so…
Browse files Browse the repository at this point in the history
… big it is unsigned long

Since 7c65fa2
'staging: vt6656: Remove QWORD from source and replace with u64.'
a new sparse warning showed up:

'drivers/staging/vt6656/card.c:798:26: sparse: constant
 0xffffffff00000000U is so big it is unsigned long'

-> Append L to fix the warning.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Malcolm Priestley <tvboxspy@gmail.com>
Cc: "Justin P. Mattock" <justinmattock@gmail.com>
Cc: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 5, 2013
1 parent 4b488af commit c7b7cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ u64 CARDqGetNextTBTT(u64 qwTSF, WORD wBeaconInterval)
if ((~uLowNextTBTT) < uLowRemain)
qwTSF = ((qwTSF >> 32) + 1) << 32;

qwTSF = (qwTSF & 0xffffffff00000000U) |
qwTSF = (qwTSF & 0xffffffff00000000UL) |
(u64)(uLowNextTBTT + uLowRemain);

return (qwTSF);
Expand Down

0 comments on commit c7b7cad

Please sign in to comment.