diff options
author | Pierre-Louis Bossart | 2019-05-01 10:57:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-05-02 17:16:29 +0200 |
commit | 2890a6363a8d42f6a24f0bbe6a48fae53d8bd875 (patch) | |
tree | 2bd8243f2cfd375db2d5fb7c470d14df3a2dab05 /drivers/soundwire | |
parent | 7cc6e315317fe3a077fa474941a3ebf93fc15e78 (diff) |
soundwire: intel: fix boolean comparison
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>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |