soundwire: mipi_disco: fix boolean comparisons
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 1 May 2019 15:57:34 +0000 (10:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:16:28 +0000 (17:16 +0200)
No need for explicit test against true

Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/mipi_disco.c

index 95efa82dc73b4a157788fa3eb72cca52ca5f4327..2bf4046e68b6be68daece4a54f8f19c69ca1ccbd 100644 (file)
@@ -49,11 +49,11 @@ int sdw_master_read_prop(struct sdw_bus *bus)
        }
 
        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;
 
        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;
 
        fwnode_property_read_u32(link,