mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
mlx5: Remove write-only variables.
This commit is contained in:
parent
8b6ccfb6c7
commit
6301649e0e
2 changed files with 0 additions and 4 deletions
|
|
@ -1063,14 +1063,12 @@ static struct mlx5_flow_group *fs_create_fg(struct mlx5_core_dev *dev,
|
|||
{
|
||||
struct mlx5_flow_group *fg;
|
||||
int err;
|
||||
unsigned int end_index;
|
||||
char name[20];
|
||||
|
||||
fg = fs_alloc_fg(fg_in);
|
||||
if (IS_ERR(fg))
|
||||
return fg;
|
||||
|
||||
end_index = fg->start_index + fg->max_ftes - 1;
|
||||
err = mlx5_cmd_fs_create_fg(dev, fg_in,
|
||||
ft->vport, ft->type, ft->id,
|
||||
&fg->id);
|
||||
|
|
|
|||
|
|
@ -891,11 +891,9 @@ mlx5_firmware_update(struct mlx5_core_dev *dev)
|
|||
static int mlx5_pci_init(struct mlx5_core_dev *dev, struct mlx5_priv *priv)
|
||||
{
|
||||
struct pci_dev *pdev = dev->pdev;
|
||||
device_t bsddev;
|
||||
int err;
|
||||
|
||||
pdev = dev->pdev;
|
||||
bsddev = pdev->dev.bsddev;
|
||||
pci_set_drvdata(dev->pdev, dev);
|
||||
strncpy(priv->name, dev_name(&pdev->dev), MLX5_MAX_NAME_LEN);
|
||||
priv->name[MLX5_MAX_NAME_LEN - 1] = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue