]> www.infradead.org Git - users/jedix/linux-maple.git/commit
stmmac: dwmac-intel-plat: remove redundant dwmac->data check in probe
authorVitalii Mordan <mordan@ispras.ru>
Fri, 15 Nov 2024 13:26:32 +0000 (16:26 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 02:49:53 +0000 (18:49 -0800)
commitcc84d89ad8d411d52ec4d000c3ed5cce52683fbd
treefbfcbea7a026b39572a71b5697671b01bbb6f79b
parente867ed3ac8aa50945170723a450b5c068a56339a
stmmac: dwmac-intel-plat: remove redundant dwmac->data check in probe

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@ispras.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c