Re: [PATCH 1/2] firmware: arm_scmi: Remove unused local variables
From: Sudeep Holla
Date: Mon Jun 06 2022 - 10:51:55 EST
On Mon, 30 May 2022 12:52:36 +0100, Cristian Marussi wrote:
> 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;
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi), thanks!
[1/2] firmware: arm_scmi: Remove unused local variables
https://git.kernel.org/sudeep.holla/c/d0c94bef70
--
Regards,
Sudeep