diff options
author | Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> | 2020-05-08 02:30:46 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-05-11 08:12:39 +0200 |
commit | 6f7219fecf35dd9d429b0ea93d78b4ee087960b7 (patch) | |
tree | b5ff8765b85baf4ac374707c38528064f9bbf176 /drivers/soundwire/intel_init.c | |
parent | soundwire: (cosmetic) remove multiple superfluous "else" statements (diff) | |
download | linux-6f7219fecf35dd9d429b0ea93d78b4ee087960b7.tar.xz linux-6f7219fecf35dd9d429b0ea93d78b4ee087960b7.zip |
soundwire: intel: (cosmetic) remove multiple superfluous "else" statements
No need for an "else" after a "return" statement. Remove multiple such
occurrences in Intel-specific code.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200508003046.23162-3-guennadi.liakhovetski@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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c index 4b769409f6f8..d5d42795a48f 100644 --- a/drivers/soundwire/intel_init.c +++ b/drivers/soundwire/intel_init.c @@ -86,7 +86,9 @@ static struct sdw_intel_ctx dev_err(&adev->dev, "Link count %d exceeds max %d\n", count, SDW_MAX_LINKS); return NULL; - } else if (!count) { + } + + if (!count) { dev_warn(&adev->dev, "No SoundWire links detected\n"); return NULL; } |