[PATCH 2/8] ASoC: Intel: catpt: Drop redundant else-if

Cezary Rojewski <[email protected]>
Newsgroups org.kernel.vger.linux-sound
Message-ID <[email protected]>
If the preceding if-statement ends with return,
there is no need for else-if.

Signed-off-by: Cezary Rojewski <[email protected]>
---
 sound/soc/intel/catpt/loader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/intel/catpt/loader.c b/sound/soc/intel/catpt/loader.c
index 880f62896997..79742dceef53 100644
--- a/sound/soc/intel/catpt/loader.c
+++ b/sound/soc/intel/catpt/loader.c
@@ -652,10 +652,10 @@ int catpt_boot_firmware(struct catpt_dev *cdev, bool restore)
 	if (!ret) {
 		dev_err(cdev->dev, "firmware ready timeout\n");
 		return -ETIMEDOUT;
+	}
 	/* Wake up does not mean FW is ready, an exception could occur. */
-	} else if (!cdev->ipc.ready) {
+	if (!cdev->ipc.ready)
 		return -EREMOTEIO;
-	}
 
 	/* update sram pg & clock once done booting */
 	catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask);
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.