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

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.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d66186b1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -29,15 +29,13 @@ static int ql_write_other_func_reg(struct ql_adapter *qdev,
				   u32 reg, u32 reg_val)
{
	u32 register_to_read;
	int status = 0;

	register_to_read = MPI_NIC_REG_BLOCK
				| MPI_NIC_READ
				| (qdev->alt_func << MPI_NIC_FUNCTION_SHIFT)
				| 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,