mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 21:09:25 -04:00
net: enetc: change enetc_set_rss() to void type
Actually enetc_set_rss() does not need a return value, so change its type to void. Signed-off-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20250506080735.3444381-10-wei.fang@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -3242,7 +3242,7 @@ struct net_device_stats *enetc_get_stats(struct net_device *ndev)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(enetc_get_stats);
|
||||
|
||||
static int enetc_set_rss(struct net_device *ndev, int en)
|
||||
static void enetc_set_rss(struct net_device *ndev, int en)
|
||||
{
|
||||
struct enetc_ndev_priv *priv = netdev_priv(ndev);
|
||||
struct enetc_hw *hw = &priv->si->hw;
|
||||
@@ -3254,8 +3254,6 @@ static int enetc_set_rss(struct net_device *ndev, int en)
|
||||
reg &= ~ENETC_SIMR_RSSE;
|
||||
reg |= (en) ? ENETC_SIMR_RSSE : 0;
|
||||
enetc_wr(hw, ENETC_SIMR, reg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void enetc_enable_rxvlan(struct net_device *ndev, bool en)
|
||||
|
||||
Reference in New Issue
Block a user