net: ena: Remove redundant return code check
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 7 Jan 2022 20:23:41 +0000 (20:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 03:25:50 +0000 (19:25 -0800)
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>
drivers/net/ethernet/amazon/ena/ena_netdev.c

index f0fbecb8019fef9997cc4761015b42e62398ea7e..2dfb1ee378e5ab6213a8baf0f61a4544ba7759fe 100644 (file)
@@ -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;
                }