aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/qlge/qlge_mpi.c
diff options
context:
space:
mode:
authorPayal Kshirsagar <payalskshirsagar1234@gmail.com>2020-03-13 00:36:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-17 14:00:45 +0100
commitd66186b179903863148fab4f2aff055e0d32b3da (patch)
tree43b221df515116313244e2518844f543121797c3 /drivers/staging/qlge/qlge_mpi.c
parentstaging: qlge: qlge_main.c: remove an unneeded variable (diff)
downloadlinux-dev-d66186b179903863148fab4f2aff055e0d32b3da.tar.xz
linux-dev-d66186b179903863148fab4f2aff055e0d32b3da.zip
staging: qlge: qlge_mpi.c: remove an unneeded variable
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>
Diffstat (limited to 'drivers/staging/qlge/qlge_mpi.c')
-rw-r--r--drivers/staging/qlge/qlge_mpi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/qlge/qlge_mpi.c b/drivers/staging/qlge/qlge_mpi.c
index 22ebd6cb8525..60c08d9cc034 100644
--- a/drivers/staging/qlge/qlge_mpi.c
+++ b/drivers/staging/qlge/qlge_mpi.c
@@ -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