Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: microchip: clean up code

Clean up code according to patch check suggestions.

Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tristram Ha and committed by
David S. Miller
9bc981c3 5b79c72e

+4 -4
+4 -4
drivers/net/dsa/microchip/ksz_common.c
··· 890 890 891 891 if (static_table[0] & ALU_V_STATIC_VALID) { 892 892 /* check this has same vid & mac address */ 893 - if (((static_table[2] >> ALU_V_FID_S) == (mdb->vid)) && 893 + if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && 894 894 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && 895 - (static_table[3] == mac_lo)) { 895 + static_table[3] == mac_lo) { 896 896 /* found matching one */ 897 897 break; 898 898 } ··· 963 963 if (static_table[0] & ALU_V_STATIC_VALID) { 964 964 /* check this has same vid & mac address */ 965 965 966 - if (((static_table[2] >> ALU_V_FID_S) == (mdb->vid)) && 966 + if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && 967 967 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && 968 - (static_table[3] == mac_lo)) { 968 + static_table[3] == mac_lo) { 969 969 /* found matching one */ 970 970 break; 971 971 }