diff options
author | Arthur Kiyanovski <akiyano@amazon.com> | 2022-01-07 23:23:41 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-08 06:25:50 +0300 |
commit | 09f8676eae1d20f840c418503001d29d1ecaa584 (patch) | |
tree | 0549100787f8a459661d7358d657e360654af5b9 | |
parent | 273a2397fc9157c04e904b6ae37f723aa910a0d1 (diff) | |
download | linux-09f8676eae1d20f840c418503001d29d1ecaa584.tar.xz |
net: ena: Remove redundant return code check
The ena_com_indirect_table_fill_entry() function only returns -EINVAL
or 0, no need to check for -EOPNOTSUPP.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index f0fbecb8019f..2dfb1ee378e5 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -4110,7 +4110,7 @@ static int ena_rss_init_default(struct ena_adapter *adapter) val = ethtool_rxfh_indir_default(i, adapter->num_io_queues); rc = ena_com_indirect_table_fill_entry(ena_dev, i, ENA_IO_RXQ_IDX(val)); - if (unlikely(rc && (rc != -EOPNOTSUPP))) { + if (unlikely(rc)) { dev_err(dev, "Cannot fill indirect table\n"); goto err_fill_indir; } |