Skip to content

Commit c0e8822

Browse files
moonlight83340henrikbrixandersen
authored andcommitted
drivers: sdhc: renesas_ra: remove dead error check
Remove a dead error check which check ret but ret wasn't even assigned before the test. Remove the useless condition to make the intent explicit and clean up the code. Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
1 parent e479e60 commit c0e8822

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/sdhc/sdhc_renesas_ra.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,6 @@ static int sdhc_ra_request(const struct device *dev, struct sdhc_command *cmd,
193193
/* Reset semaphore */
194194
k_sem_reset(&priv->sdmmc_event.transfer_sem);
195195
k_sem_take(&priv->thread_lock, K_FOREVER);
196-
if (ret < 0) {
197-
LOG_ERR("Can not take sem!");
198-
goto end;
199-
}
200196

201197
/*
202198
* Handle opcode with RA specifics

0 commit comments

Comments
 (0)