Bug 80621 - tools/power/cpupower/utils/helpers/sysfs.c:84: pointless test ?
Summary: tools/power/cpupower/utils/helpers/sysfs.c:84: pointless test ?
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 10:21 UTC by David Binderman
Modified: 2015-04-04 19:52 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.16-rc5
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description David Binderman 2014-07-18 10:21:57 UTC
[linux-3.16-rc5/tools/power/cpupower/utils/helpers/sysfs.c:84]: (style) Checking if unsigned variable 'value' is less than zero.

    if (value > 1 || value < 0)
Comment 1 Andrey Utkin 2014-07-18 15:48:38 UTC
Thanks. https://patchwork.kernel.org/patch/4586011/

Note You need to log in before you can comment on or make changes to this bug.