From: Russell King (Oracle) Date: Wed, 29 Oct 2025 00:03:41 +0000 (+0000) Subject: net: stmmac: use != rather than ^ for comparing dev_id X-Git-Tag: v6.19-rc1~170^2~283^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9326b139b4c77128564574ea2d7b83c8a758114;p=thirdparty%2Fkernel%2Flinux.git net: stmmac: use != rather than ^ for comparing dev_id Use the more usual not-equals rather than exclusive-or operator when comparing the dev_id in stmmac_hwif_find(). Reviewed-by: Andrew Lunn Tested-by: Maxime Chevallier Tested-by: Mohd Ayaan Anwar Signed-off-by: Russell King (Oracle) Link: https://patch.msgid.link/E1vDtfB-0000000CCCR-25rr@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c b/drivers/net/ethernet/stmicro/stmmac/hwif.c index 892cef79c4d10..e1f99b9d9d7f1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/hwif.c +++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c @@ -314,7 +314,7 @@ stmmac_hwif_find(enum dwmac_core_type core_type, u8 snpsver, u8 dev_id) if (snpsver < entry->min_id) continue; if (core_type == DWMAC_CORE_XGMAC && - (dev_id ^ entry->dev_id)) + dev_id != entry->dev_id) continue; return entry;