| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * QLogic qlcnic NIC Driver |
|---|
| 3 | 4 | * Copyright (c) 2009-2013 QLogic Corporation |
|---|
| 4 | | - * |
|---|
| 5 | | - * See LICENSE.qlcnic for copyright and licensing details. |
|---|
| 6 | 5 | */ |
|---|
| 7 | 6 | |
|---|
| 8 | 7 | #include <linux/types.h> |
|---|
| .. | .. |
|---|
| 1068 | 1067 | { |
|---|
| 1069 | 1068 | struct qlcnic_vf_info *vf = trans->vf; |
|---|
| 1070 | 1069 | struct qlcnic_adapter *adapter = vf->adapter; |
|---|
| 1071 | | - int err = -EIO; |
|---|
| 1072 | | - u8 op; |
|---|
| 1073 | | - |
|---|
| 1074 | | - op = cmd->req.arg[1] & 0xff; |
|---|
| 1070 | + int err; |
|---|
| 1075 | 1071 | |
|---|
| 1076 | 1072 | cmd->req.arg[1] |= vf->vp->handle << 16; |
|---|
| 1077 | 1073 | cmd->req.arg[1] |= BIT_31; |
|---|
| .. | .. |
|---|
| 1341 | 1337 | { |
|---|
| 1342 | 1338 | struct qlcnic_vf_info *vf = trans->vf; |
|---|
| 1343 | 1339 | struct qlcnic_vport *vp = vf->vp; |
|---|
| 1344 | | - u8 cmd_op, mode = vp->vlan_mode; |
|---|
| 1340 | + u8 mode = vp->vlan_mode; |
|---|
| 1345 | 1341 | struct qlcnic_adapter *adapter; |
|---|
| 1346 | 1342 | struct qlcnic_sriov *sriov; |
|---|
| 1347 | 1343 | |
|---|
| 1348 | 1344 | adapter = vf->adapter; |
|---|
| 1349 | 1345 | sriov = adapter->ahw->sriov; |
|---|
| 1350 | 1346 | |
|---|
| 1351 | | - cmd_op = trans->req_hdr->cmd_op; |
|---|
| 1352 | 1347 | cmd->rsp.arg[0] |= 1 << 25; |
|---|
| 1353 | 1348 | |
|---|
| 1354 | 1349 | /* For 84xx adapter in case of PVID , PFD should send vlan mode as |
|---|