Commit 00910f3c authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Greg Kroah-Hartman

soundwire: mipi_disco: fix boolean comparisons

No need for explicit test against true
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31dba312
...@@ -49,11 +49,11 @@ int sdw_master_read_prop(struct sdw_bus *bus) ...@@ -49,11 +49,11 @@ int sdw_master_read_prop(struct sdw_bus *bus)
} }
if (fwnode_property_read_bool(link, if (fwnode_property_read_bool(link,
"mipi-sdw-clock-stop-mode0-supported") == true) "mipi-sdw-clock-stop-mode0-supported"))
prop->clk_stop_mode = SDW_CLK_STOP_MODE0; prop->clk_stop_mode = SDW_CLK_STOP_MODE0;
if (fwnode_property_read_bool(link, if (fwnode_property_read_bool(link,
"mipi-sdw-clock-stop-mode1-supported") == true) "mipi-sdw-clock-stop-mode1-supported"))
prop->clk_stop_mode |= SDW_CLK_STOP_MODE1; prop->clk_stop_mode |= SDW_CLK_STOP_MODE1;
fwnode_property_read_u32(link, fwnode_property_read_u32(link,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment