mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: Intel: catpt: Drop redundant else-if
If the preceding if-statement ends with return, there is no need for else-if. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20260729110057.342447-3-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
abc7daad42
commit
05d3ba6258
|
|
@ -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) {
|
||||
return -EREMOTEIO;
|
||||
}
|
||||
/* Wake up does not mean FW is ready, an exception could occur. */
|
||||
if (!cdev->ipc.ready)
|
||||
return -EREMOTEIO;
|
||||
|
||||
/* update sram pg & clock once done booting */
|
||||
catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user