mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: liujian <liujian56@huawei.com>
To: <qla2xxx-upstream@qlogic.com>, <jejb@linux.vnet.ibm.com>,
	<martin.petersen@oracle.com>, <vinholikatti@gmail.com>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/2] driver: scsi: qla2xxx: fix returnvar.cocci warning
Date: Sat, 1 Dec 2018 02:07:44 +0800	[thread overview]
Message-ID: <1543601264-12610-2-git-send-email-liujian56@huawei.com> (raw)
In-Reply-To: <1543601264-12610-1-git-send-email-liujian56@huawei.com>

Remove unneeded variable used to store return value,
detected by the semantic patch returnvar.cocci.

Signed-off-by: liujian <liujian56@huawei.com>
---
 drivers/scsi/qla2xxx/qla_mr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c
index 60f964c..bb66ea4 100644
--- a/drivers/scsi/qla2xxx/qla_mr.c
+++ b/drivers/scsi/qla2xxx/qla_mr.c
@@ -1712,7 +1712,6 @@ qlafx00_tgt_detach(struct scsi_qla_host *vha, int tgt_id)
 int
 qlafx00_process_aen(struct scsi_qla_host *vha, struct qla_work_evt *evt)
 {
-	int rval = 0;
 	uint32_t aen_code, aen_data;
 
 	aen_code = FCH_EVT_VENDOR_UNIQUE;
@@ -1764,7 +1763,7 @@ qlafx00_process_aen(struct scsi_qla_host *vha, struct qla_work_evt *evt)
 	fc_host_post_event(vha->host, fc_get_event_number(),
 	    aen_code, aen_data);
 
-	return rval;
+	return 0;
 }
 
 static void
-- 
2.7.4


      reply	other threads:[~2018-11-30  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-30 18:07 [PATCH 1/2] driver: scsi: ufs-qcom: " liujian
2018-11-30 18:07 ` liujian [this message]

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=1543601264-12610-2-git-send-email-liujian56@huawei.com \
    --to=liujian56@huawei.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=qla2xxx-upstream@qlogic.com \
    --cc=vinholikatti@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®