[PATCH] firmware: arm_scmi: Do not use !! on boolean when setting msg->flags
Sudeep Holla
sudeep.holla at arm.com
Wed Sep 27 06:12:39 PDT 2023
On Thu, 21 Sep 2023 09:52:57 +0100, Sudeep Holla wrote:
> Both pc->async_powercap_cap_set and ignore_dresp are already boolean.
> Use of !! on them is obviously dubious.
>
> Sparse reports:
> drivers/firmware/arm_scmi/powercap.c:363:17: warning: dubious: x & !y
> drivers/firmware/arm_scmi/powercap.c:363:17: warning: dubious: x & !y
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!
[1/1] firmware: arm_scmi: Do not use !! on boolean when setting msg->flags
https://git.kernel.org/sudeep.holla/c/a10aa2584ef5
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list