Skip to content

Commit

Permalink
net: dsa: microchip: use DSA_TAG_PROTO without _VALUE define
Browse files Browse the repository at this point in the history
Correct the use of define DSA_TAG_PROTO_LAN937X_VALUE to
DSA_TAG_PROTO_LAN937X to improve readability.

Fixes: 99b16df ("net: dsa: microchip: lan937x: add dsa_tag_protocol")
Signed-off-by: Sean Nyekjaer <[email protected]>
Signed-off-by: NipaLocal <nipa@local>
  • Loading branch information
sknsean authored and NipaLocal committed Dec 6, 2023
1 parent 0ad3e3c commit 2ae1f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dsa/microchip/ksz_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds,
proto = DSA_TAG_PROTO_KSZ9477;

if (is_lan937x(dev))
proto = DSA_TAG_PROTO_LAN937X_VALUE;
proto = DSA_TAG_PROTO_LAN937X;

return proto;
}
Expand Down

0 comments on commit 2ae1f49

Please sign in to comment.