Bug 80621

Summary: tools/power/cpupower/utils/helpers/sysfs.c:84: pointless test ?
Product: Power Management Reporter: David Binderman (dcb314)
Component: OtherAssignee: Rafael J. Wysocki (rjw)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: low CC: andrey_utkin, lenb, tianyu.lan, trenn
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.16-rc5 Subsystem:
Regression: No Bisected commit-id:

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/