[PATCH] cadence_qspi: Remove duplicated return

Michal Simek michal.simek at amd.com
Wed Dec 10 08:35:59 CET 2025



On 11/26/25 19:15, Michal Simek wrote:
> The commit 6d234a79e9eb ("cadence_qspi: Refactor the flash reset
> functionality") introduced two returns in cadence_spi_probe() that's why
> remove it.
> 
> Fixes: 6d234a79e9eb ("cadence_qspi: Refactor the flash reset functionality")
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   drivers/spi/cadence_qspi.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c
> index 892dc3557a5e..2d2469565b5d 100644
> --- a/drivers/spi/cadence_qspi.c
> +++ b/drivers/spi/cadence_qspi.c
> @@ -270,8 +270,6 @@ static int cadence_spi_probe(struct udevice *bus)
>   
>   	/* Reset ospi flash device */
>   	return cadence_qspi_flash_reset(bus);
> -
> -	return 0;
>   }
>   
>   static int cadence_spi_remove(struct udevice *dev)

Applied.
M


More information about the U-Boot mailing list