Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: mucse: rnp: remove extraneous parentheses around the comparison
Fix follow error with clang-19: drivers/net/ethernet/mucse/rnp/rnp_main.c:6165:24: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] 6165 | } else if ((protocol == htons(ETH_P_8021Q))) { | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/mucse/rnp/rnp_main.c:6165:24: note: remove extraneous parentheses around the comparison to silence this warning 6165 | } else if ((protocol == htons(ETH_P_8021Q))) { | ~ ^ ~ drivers/net/ethernet/mucse/rnp/rnp_main.c:6165:24: note: use '=' to turn this equality comparison into an assignment 6165 | } else if ((protocol == htons(ETH_P_8021Q))) { | ^~ | = 1 error generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information