diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-05-31 21:20:59 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-06-22 14:51:36 +0300 |
commit | 9cd1c5a721d2e1d767d9add0ebf53c93459ba87c (patch) | |
tree | cc569e821501ec149ec7a6e47e41b89cf83cfb81 /drivers/soundwire/intel_init.c | |
parent | 83e129afbe5c4a444c034e981b0f8535889380fe (diff) | |
download | linux-9cd1c5a721d2e1d767d9add0ebf53c93459ba87c.tar.xz |
soundwire: intel_init: remove useless test
No need to test link_mask twice
Suggested-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200531182102.27840-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/intel_init.c')
-rw-r--r-- | drivers/soundwire/intel_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c index 188a1fa17e27..d6e85e582c9b 100644 --- a/drivers/soundwire/intel_init.c +++ b/drivers/soundwire/intel_init.c @@ -109,7 +109,7 @@ static struct sdw_intel_ctx /* Create SDW Master devices */ for (i = 0; i < count; i++) { - if (link_mask && !(link_mask & BIT(i))) { + if (!(link_mask & BIT(i))) { dev_dbg(&adev->dev, "Link %d masked, will not be enabled\n", i); link++; |