Re: [PATCH net-next v2] stmmac: dwmac-intel-plat: remove redundant dwmac->data check in probe
From: Andrew Lunn
Date: Mon Nov 11 2024 - 19:02:04 EST
On Mon, Nov 11, 2024 at 04:00:47PM +0300, Vitalii Mordan wrote:
> The driver’s compatibility with devices is confirmed earlier in
> platform_match(). Since reaching probe means the device is valid,
> the extra check can be removed to simplify the code.
>
> Signed-off-by: Vitalii Mordan <mordan@xxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew