soundwire: intel: fix boolean comparison
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 1 May 2019 15:57:40 +0000 (10:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:16:29 +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/intel.c

index 8c653a563534a6d61bec804c848ba89b79e1885e..2852ce293fd418f58cba514c4a0820e0bd9b499e 100644 (file)
@@ -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];