xtimer: fix cppcheck warnings

This commit is contained in:
Martine Lenders 2017-03-07 16:43:17 +01:00 committed by Oleg Hahm
parent 62ca7f9242
commit b2bc244ce9
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ static inline uint32_t _xtimer_lltimer_now(void)
*/
static inline uint32_t _xtimer_lltimer_mask(uint32_t val)
{
/* cppcheck-suppress shiftTooManyBits
* (reason: cppcheck bug. `XTIMER_MASK` is zero when `XTIMER_WIDTH` is 32) */
return val & ~XTIMER_MASK;
}