aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorCristian Marussi <[email protected]>2022-05-30 12:52:36 +0100
committerSudeep Holla <[email protected]>2022-06-06 15:47:04 +0100
commitd0c94bef70e71e364c0a016b0e92307cd4d1d719 (patch)
treec546e11ea0d7f8af04db47c40c3b8f469cb07960 /include/linux/fpga/fpga-mgr.h
parent122839b58a089ff7f231759e2c8f63790724cae2 (diff)
firmware: arm_scmi: Remove all the unused local variables
While using SCMI iterators helpers a few local automatic variables are defined but then used only as input for sizeof operators. cppcheck is fooled to complain about this with: | drivers/firmware/arm_scmi/sensors.c:341:48: warning: Variable 'msg' is | not assigned a value. [unassignedVariable] | struct scmi_msg_sensor_list_update_intervals *msg; Even though this is an innocuos warning, since the uninitialized variable is at the end never used in the reported cases, fix these occurences all over SCMI stack to avoid keeping unneeded objects on the stack. Link: https://lore.kernel.org/r/[email protected] Cc: Dan Carpenter <[email protected]> Cc: Sudeep Holla <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Cristian Marussi <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions