aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2018-09-15 17:05:07 -0700
committerGuenter Roeck <[email protected]>2018-10-10 20:37:13 -0700
commita31796c30e423f58d266df30a9bbf321fc071b30 (patch)
treeebbaea3d57f44f504a5c49279454c8c324227e38 /tools/perf/scripts/python
parent2738b767be548d6397a74141c18182fddd8abfc3 (diff)
hwmon: (scmi) Remove redundant pointer check
Clang warns when the address of a pointer is used in a boolean context as it will always return true. drivers/hwmon/scmi-hwmon.c:59:24: warning: address of array 'sensor->name' will always evaluate to 'true' [-Wpointer-bool-conversion] if (sensor && sensor->name) ~~ ~~~~~~~~^~~~ 1 warning generated. Remove the check as it isn't doing anything currently; if validation of the contents of the data structure was intended by the original author (since this line has been present from the first version of this driver), it can be added in a follow-up patch. Reported-by: Nick Desaulniers <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions