Commit 69fe462f authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman

staging: qlge: qlge_dbg.c: remove an unneeded variable

Remove unneeded temporary local variable, cleanup suggested by coccinelle.
Signed-off-by: default avatarPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-4-payalskshirsagar1234@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d66186b1
...@@ -29,15 +29,13 @@ static int ql_write_other_func_reg(struct ql_adapter *qdev, ...@@ -29,15 +29,13 @@ static int ql_write_other_func_reg(struct ql_adapter *qdev,
u32 reg, u32 reg_val) u32 reg, u32 reg_val)
{ {
u32 register_to_read; u32 register_to_read;
int status = 0;
register_to_read = MPI_NIC_REG_BLOCK register_to_read = MPI_NIC_REG_BLOCK
| MPI_NIC_READ | MPI_NIC_READ
| (qdev->alt_func << MPI_NIC_FUNCTION_SHIFT) | (qdev->alt_func << MPI_NIC_FUNCTION_SHIFT)
| reg; | reg;
status = ql_write_mpi_reg(qdev, register_to_read, reg_val);
return status; return ql_write_mpi_reg(qdev, register_to_read, reg_val);
} }
static int ql_wait_other_func_reg_rdy(struct ql_adapter *qdev, u32 reg, static int ql_wait_other_func_reg_rdy(struct ql_adapter *qdev, u32 reg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment