staging: qlge: qlge_dbg.c: remove an unneeded variable
authorPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Thu, 12 Mar 2020 19:06:23 +0000 (00:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 13:00:45 +0000 (14:00 +0100)
Remove unneeded temporary local variable, cleanup suggested by coccinelle.

Signed-off-by: Payal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-4-payalskshirsagar1234@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_dbg.c

index e2fa2a9..737d6ab 100644 (file)
@@ -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,