Re: [PATCH] mmc: sdhci-brcmstb: don't log an error for missing BOOT registers
From: Markus Elfring
Date: Fri Oct 09 2026 - 05:42:15 EST
…
> +++ b/drivers/mmc/host/sdhci-brcmstb.c
> @@ -491,6 +491,7 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
> struct sdhci_brcmstb_priv *priv;
> u32 actual_clock_mhz;
> struct sdhci_host *host;
> + struct resource *boot_res;
…
I suggest to reduce the scope for this local variable because you would like to use it only
within a selected if branch.
https://elixir.bootlin.com/linux/v7.3-rc6/source/drivers/mmc/host/sdhci-brcmstb.c#L535-L540
Regards,
Markus