[lvc-project] [PATCH net-next v2] stmmac: dwmac-intel-plat: remove redundant dwmac->data check in probe

Andrew Lunn andrew at lunn.ch
Tue Nov 12 02:56:03 MSK 2024


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 at ispras.ru>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the lvc-project mailing list