From: Pierre-Louis Bossart Date: Wed, 1 May 2019 15:57:40 +0000 (-0500) Subject: soundwire: intel: fix boolean comparison X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2890a6363a8d42f6a24f0bbe6a48fae53d8bd875;p=openwrt%2Fstaging%2Fblogic.git soundwire: intel: fix boolean comparison No need for explicit test against true Reviewed-by: Takashi Iwai Signed-off-by: Pierre-Louis Bossart Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 8c653a563534..2852ce293fd4 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -473,7 +473,7 @@ static struct sdw_cdns_port *intel_alloc_port(struct sdw_intel *sdw, int i, ret = 0; for (i = 0; i < cdns->num_ports; i++) { - if (cdns->ports[i].assigned == true) + if (cdns->ports[i].assigned) continue; port = &cdns->ports[i];