diff --git a/drivers/net/ethernet/mucse/rnp/rnp_main.c b/drivers/net/ethernet/mucse/rnp/rnp_main.c index 59d7873bf017..db7927f70cea 100644 --- a/drivers/net/ethernet/mucse/rnp/rnp_main.c +++ b/drivers/net/ethernet/mucse/rnp/rnp_main.c @@ -6162,7 +6162,7 @@ netdev_tx_t rnp_xmit_frame_ring(struct sk_buff *skb, * protocol and store the tag */ /* veb only use ctags */ - } else if ((protocol == htons(ETH_P_8021Q))) { + } else if (protocol == htons(ETH_P_8021Q)) { struct vlan_hdr *vhdr, _vhdr; vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), diff --git a/drivers/net/ethernet/mucse/rnp/rnp_n10.c b/drivers/net/ethernet/mucse/rnp/rnp_n10.c index 57f7e449e96c..3d626bc0f655 100644 --- a/drivers/net/ethernet/mucse/rnp/rnp_n10.c +++ b/drivers/net/ethernet/mucse/rnp/rnp_n10.c @@ -3326,8 +3326,8 @@ static int rnp10_set_link_ksettings(struct net_device *netdev, if (advertising_link_speed) { hw->phy.autoneg_advertised = advertising_link_speed; } else { - if ((hw->force_speed_stat == - FORCE_SPEED_STAT_DISABLED)) { + if (hw->force_speed_stat == + FORCE_SPEED_STAT_DISABLED) { netdev_info(netdev, "advertising_link_speed is 0\n"); err = -EINVAL;