Skip to content

Commit

Permalink
net: ethernet: ti: am65-cpsw: remove unused parameter of am65_cpsw_nu…
Browse files Browse the repository at this point in the history
…ss_common_open()

The inptu parameter 'features' is unused now. so remove it.

Signed-off-by: Jian Shen <[email protected]>
Signed-off-by: Guangbin Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
IronShen authored and kuba-moo committed Sep 22, 2022
1 parent fa2aee6 commit 3342a10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/ti/am65-cpsw-nuss.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ static void am65_cpsw_init_host_port_emac(struct am65_cpsw_common *common);
static void am65_cpsw_init_port_switch_ale(struct am65_cpsw_port *port);
static void am65_cpsw_init_port_emac_ale(struct am65_cpsw_port *port);

static int am65_cpsw_nuss_common_open(struct am65_cpsw_common *common,
netdev_features_t features)
static int am65_cpsw_nuss_common_open(struct am65_cpsw_common *common)
{
struct am65_cpsw_host *host_p = am65_common_get_host(common);
int port_idx, i, ret;
Expand Down Expand Up @@ -577,7 +576,7 @@ static int am65_cpsw_nuss_ndo_slave_open(struct net_device *ndev)
for (i = 0; i < common->tx_ch_num; i++)
netdev_tx_reset_queue(netdev_get_tx_queue(ndev, i));

ret = am65_cpsw_nuss_common_open(common, ndev->features);
ret = am65_cpsw_nuss_common_open(common);
if (ret)
return ret;

Expand Down

0 comments on commit 3342a10

Please sign in to comment.