All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saurav Girepunje <saurav.girepunje@gmail.com>
To: intel-linux-scu@intel.com, artur.paszkiewicz@intel.com,
	jejb@linux.ibm.com, martin.petersen@oracle.com,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: saurav.girepunje@hotmail.com
Subject: [PATCH] scsi: isci: fix unneeded variable
Date: Sat, 25 Jan 2020 22:58:54 +0530	[thread overview]
Message-ID: <20200125172854.GA4860@google.com> (raw)

remove unneeded variable status in request.c file.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
  drivers/scsi/isci/request.c | 8 +++-----
  1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index 343d24c..9849366 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -1480,7 +1480,6 @@ static enum sci_status sci_stp_request_pio_data_in_copy_data(
  stp_request_pio_await_h2d_completion_tc_event(struct isci_request *ireq,
  					      u32 completion_code)
  {
-	enum sci_status status = SCI_SUCCESS;
  
  	switch (SCU_GET_COMPLETION_TL_STATUS(completion_code)) {
  	case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_GOOD):
@@ -1500,7 +1499,7 @@ static enum sci_status sci_stp_request_pio_data_in_copy_data(
  		break;
  	}
  
-	return status;
+	return SCI_SUCCESS;
  }
  
  static enum sci_status
@@ -2148,13 +2147,12 @@ static enum sci_status stp_request_udma_await_tc_event(struct isci_request *ireq
  		break;
  	}
  
-	return status;
+	return SCI_SUCCESS;
  }
  
  static enum sci_status atapi_raw_completion(struct isci_request *ireq, u32 completion_code,
  						  enum sci_base_request_states next)
  {
-	enum sci_status status = SCI_SUCCESS;
  
  	switch (SCU_GET_COMPLETION_TL_STATUS(completion_code)) {
  	case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_GOOD):
@@ -2174,7 +2172,7 @@ static enum sci_status atapi_raw_completion(struct isci_request *ireq, u32 compl
  		break;
  	}
  
-	return status;
+	return SCI_SUCCESS;
  }
  
  static enum sci_status atapi_data_tc_completion_handler(struct isci_request *ireq,
-- 
1.9.1


                 reply	other threads:[~2020-01-25 17:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200125172854.GA4860@google.com \
    --to=saurav.girepunje@gmail.com \
    --cc=artur.paszkiewicz@intel.com \
    --cc=intel-linux-scu@intel.com \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=saurav.girepunje@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.