staging: qlge: qlge_mpi.c: remove an unneeded variable
authorPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Thu, 12 Mar 2020 19:06:22 +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-3-payalskshirsagar1234@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_mpi.c

index 22ebd6c..60c08d9 100644 (file)
@@ -90,10 +90,7 @@ exit:
 
 int ql_soft_reset_mpi_risc(struct ql_adapter *qdev)
 {
-       int status;
-
-       status = ql_write_mpi_reg(qdev, 0x00001010, 1);
-       return status;
+       return ql_write_mpi_reg(qdev, 0x00001010, 1);
 }
 
 /* Determine if we are in charge of the firwmare. If