Re: [PATCH] mmc: renesas_sdhi: simplify an expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wolfram,

Nice fix.

On 2021-11-17 11:38:50 +0100, Wolfram Sang wrote:
> We already have 'quirks', no need to go via 'priv'.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>

> ---
>  drivers/mmc/host/renesas_sdhi_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
> index a4407f391f66..29bc086f6cb5 100644
> --- a/drivers/mmc/host/renesas_sdhi_core.c
> +++ b/drivers/mmc/host/renesas_sdhi_core.c
> @@ -1044,7 +1044,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
>  	     host->mmc->caps2 & (MMC_CAP2_HS200_1_8V_SDR |
>  				 MMC_CAP2_HS400_1_8V))) {
>  		const struct renesas_sdhi_scc *taps = of_data->taps;
> -		bool use_4tap = priv->quirks && priv->quirks->hs400_4taps;
> +		bool use_4tap = quirks && quirks->hs400_4taps;
>  		bool hit = false;
>  
>  		for (i = 0; i < of_data->taps_num; i++) {
> -- 
> 2.30.2
> 

-- 
Kind Regards,
Niklas Söderlund



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux