mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
This commit is contained in:
parent
273a2397fc
commit
09f8676eae
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user