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>
This commit is contained in:
Guennadi Liakhovetski
2020-05-08 02:30:46 +02:00
committed by Vinod Koul
parent f779ad0910
commit 6f7219fecf
2 changed files with 9 additions and 3 deletions

View File

@@ -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;
}