diff options
author | Hans de Goede <[email protected]> | 2021-04-19 16:31:09 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-04-20 17:01:48 +0200 |
commit | dd5566d6d80c2d9936f8b8b36a7a9599cbfe47a7 (patch) | |
tree | 4b9194fdfef80a8f95f0b46fb054a95cb5f17803 /drivers/platform/surface/aggregator/controller.c | |
parent | 8d01cf643b3f8bc79c5b6bf18382b943143d9090 (diff) |
platform/x86: intel_pmc_core: Fix "unsigned 'ret' is never less than zero" smatch warning
Change the type of ret form a size_t to a ssize_t, matching the prototype
of simple_write_to_buffer(), fixing this warning reported by smatch:
drivers/platform/x86/intel_pmc_core.c:1369 pmc_core_lpm_latch_mode_write() warn: unsigned 'ret' is never less than zero.
Fixes: 8074a79fad2e ("platform/x86: intel_pmc_core: Add option to set/clear LPM mode")
Cc: David E. Box <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions