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 errors 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. drivers/net/ethernet/mucse/rnp/rnp_n10.c:3329:30: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] 3329 | if ((hw->force_speed_stat == | ~~~~~~~~~~~~~~~~~~~~~^~ 3330 | FORCE_SPEED_STAT_DISABLED)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/mucse/rnp/rnp_n10.c:3329:30: note: remove extraneous parentheses around the comparison to silence this warning 3329 | if ((hw->force_speed_stat == | ~ ^ 3330 | FORCE_SPEED_STAT_DISABLED)) { | ~ drivers/net/ethernet/mucse/rnp/rnp_n10.c:3329:30: note: use '=' to turn this equality comparison into an assignment 3329 | if ((hw->force_speed_stat == | ^~ | = 1 error generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information