提交 c9e4f5f0 编写于 作者: Y YueHaibing 提交者: David S. Miller

liquidio: remove set but not used variable 'irh'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/cavium/liquidio/request_manager.c: In function 'lio_process_iq_request_list':
drivers/net/ethernet/cavium/liquidio/request_manager.c:383:27: warning:
 variable 'irh' set but not used [-Wunused-but-set-variable]
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Acked-by: NFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c8b79566
...@@ -380,7 +380,6 @@ lio_process_iq_request_list(struct octeon_device *oct, ...@@ -380,7 +380,6 @@ lio_process_iq_request_list(struct octeon_device *oct,
u32 inst_count = 0; u32 inst_count = 0;
unsigned int pkts_compl = 0, bytes_compl = 0; unsigned int pkts_compl = 0, bytes_compl = 0;
struct octeon_soft_command *sc; struct octeon_soft_command *sc;
struct octeon_instr_irh *irh;
unsigned long flags; unsigned long flags;
while (old != iq->octeon_read_index) { while (old != iq->octeon_read_index) {
...@@ -402,14 +401,6 @@ lio_process_iq_request_list(struct octeon_device *oct, ...@@ -402,14 +401,6 @@ lio_process_iq_request_list(struct octeon_device *oct,
case REQTYPE_RESP_NET: case REQTYPE_RESP_NET:
case REQTYPE_SOFT_COMMAND: case REQTYPE_SOFT_COMMAND:
sc = buf; sc = buf;
if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct))
irh = (struct octeon_instr_irh *)
&sc->cmd.cmd3.irh;
else
irh = (struct octeon_instr_irh *)
&sc->cmd.cmd2.irh;
/* We're expecting a response from Octeon. /* We're expecting a response from Octeon.
* It's up to lio_process_ordered_list() to * It's up to lio_process_ordered_list() to
* process sc. Add sc to the ordered soft * process sc. Add sc to the ordered soft
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册