Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/sensors/gnss: Fix integer overflow error
CID 1309501: (#1 of 1): Overflow constant (INTEGER_OVERFLOW) overflow_const: Expression upper->crefs, which is equal to 255, where enable ? 1 : -1 is known to be equal to -1, overflows the type that receives it, an unsigned integer 8 bits wide. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
- Loading branch information