]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_scmi: Do not use !! on boolean when setting msg->flags
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 21 Sep 2023 08:52:57 +0000 (09:52 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 27 Sep 2023 12:17:53 +0000 (13:17 +0100)
commita10aa2584ef5223398cce82310bf5fa6ef9a75ab
tree53755669d3c9ce59e0c0ae07aeff86194b33d57a
parentaf78e5c309c4b797168c8ce87c60ca06b26b1e73
firmware: arm_scmi: Do not use !! on boolean when setting msg->flags

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

Remove the unnecessary !! and get rid of the warning.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20230921085257.3125744-1-sudeep.holla@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/powercap.c