diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-07-19 16:07:19 +0300 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-07-25 09:56:37 -0700 |
commit | 890f658c101df5842ce8aaec1b0833cf1ba37eb3 (patch) | |
tree | bc3743e6e2e423ff29be4a137d8347768412ccbb /drivers/platform/x86/intel_telemetry_pltdrv.c | |
parent | 972777171f33f9932f51feebe42dbcc1b475d01a (diff) | |
download | linux-890f658c101df5842ce8aaec1b0833cf1ba37eb3.tar.gz linux-890f658c101df5842ce8aaec1b0833cf1ba37eb3.tar.bz2 linux-890f658c101df5842ce8aaec1b0833cf1ba37eb3.zip |
platform/x86: peaq-wmi: silence a static checker warning
There is a harmless static checker warning here that unsigned values are
always >= 0. The code looks like:
if (peaq_ignore_events_counter && --peaq_ignore_events_counter >= 0)
The first part of the condition ensures that we never wrap around so the
code works as intended. I've tweaked it slightly to avoid the warning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel_telemetry_pltdrv.c')
0 files changed, 0 insertions, 0 deletions