net: ena: change the return type of ena_set_push_mode() to be void.
This patch changes the return type of ena_set_push_mode() to be void, as it always returns 0. Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
85d2c92051
commit
184b49c89f
|
@ -2681,8 +2681,8 @@ static int ena_calc_io_queue_num(struct pci_dev *pdev,
|
||||||
return io_queue_num;
|
return io_queue_num;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ena_set_push_mode(struct pci_dev *pdev, struct ena_com_dev *ena_dev,
|
static void ena_set_push_mode(struct pci_dev *pdev, struct ena_com_dev *ena_dev,
|
||||||
struct ena_com_dev_get_features_ctx *get_feat_ctx)
|
struct ena_com_dev_get_features_ctx *get_feat_ctx)
|
||||||
{
|
{
|
||||||
bool has_mem_bar;
|
bool has_mem_bar;
|
||||||
|
|
||||||
|
@ -2693,8 +2693,6 @@ static int ena_set_push_mode(struct pci_dev *pdev, struct ena_com_dev *ena_dev,
|
||||||
ena_dev->tx_mem_queue_type = ENA_ADMIN_PLACEMENT_POLICY_DEV;
|
ena_dev->tx_mem_queue_type = ENA_ADMIN_PLACEMENT_POLICY_DEV;
|
||||||
else
|
else
|
||||||
ena_dev->tx_mem_queue_type = ENA_ADMIN_PLACEMENT_POLICY_HOST;
|
ena_dev->tx_mem_queue_type = ENA_ADMIN_PLACEMENT_POLICY_HOST;
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ena_set_dev_offloads(struct ena_com_dev_get_features_ctx *feat,
|
static void ena_set_dev_offloads(struct ena_com_dev_get_features_ctx *feat,
|
||||||
|
@ -2913,11 +2911,7 @@ static int ena_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||||
goto err_free_region;
|
goto err_free_region;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = ena_set_push_mode(pdev, ena_dev, &get_feat_ctx);
|
ena_set_push_mode(pdev, ena_dev, &get_feat_ctx);
|
||||||
if (rc) {
|
|
||||||
dev_err(&pdev->dev, "Invalid module param(push_mode)\n");
|
|
||||||
goto err_device_destroy;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_DEV) {
|
if (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_DEV) {
|
||||||
ena_dev->mem_bar = ioremap_wc(pci_resource_start(pdev, ENA_MEM_BAR),
|
ena_dev->mem_bar = ioremap_wc(pci_resource_start(pdev, ENA_MEM_BAR),
|
||||||
|
|
Loading…
Reference in New Issue