Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1339197pxa; Sun, 2 Aug 2020 04:18:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7wJB97TK+kGJmcNhZPEcYp3YR6tSqVylIoBceYbT4HNkGTFtiwpIIngr53N/rKr9YFzBe X-Received: by 2002:aa7:c395:: with SMTP id k21mr11782544edq.386.1596367105372; Sun, 02 Aug 2020 04:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596367105; cv=none; d=google.com; s=arc-20160816; b=U4lZjndv++SPUJe0wpzZ2MLxeLOUDDLBFVxmTSC8hjGUARDjJgjMlbAxM69QuE909N hEmsPu/PFpPweoAcG55eDrt2JFFvqYk3zessd5ELkDqsHplqyfklypDOEjPMduFgyKqB fQaTddtvt357gN/OUIL3h1tLax3eK1QbE7OQqVXbnO/9iZSlHR0AixUosFn4Bb16h5yQ w2eGu/Xnh0TFiF5cdVVW11/kCkS3GFPMFJ7vzwqKLqBDE/oLv7Kvs9MSuqhLrm1w9K49 Wev3y0oBpJMFxicOT456YSpBgrYcDl5gJ4rJmnqrB6YatjtqYF6+FCqtonlmBvr9W2BK iAUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=0DPJKXg/hXcBZY3A7TU9Kh2ESsT2xDaTWexnVaFyIAA=; b=OI9d2RyfBlpl96HT9UjyLZ3lKiNVwLXOQqzJbiN7wh4cGTqykFzbDsngqy80b+twsB kH919wxKb0YeBJAxM7mI28gKGZm1KYiYGHJrJbFVq8e3y50cQ6kvWE3aRYFQZk51luJ/ m1neRtKkO5ozpb1XKVRdX8TSxCQnqvc+S2PJgC8nUdFmVo8RJpNf6EMYFXWBviXmn622 a7CELbUIYZ9cYyR53UiT9Q+t54ik5a4LtlkTVhhs6zdb4P5rFWry4yn4nvZNgwCrUVpV 2DRGMNBJCTZrMHSx2ShIkr/k8X3RYJD5Ra7sHQSuqpOLfq3imCl2LLjuIFYQ+UHkniOC ddxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si8653884edq.221.2020.08.02.04.18.03; Sun, 02 Aug 2020 04:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727971AbgHBLPb (ORCPT + 99 others); Sun, 2 Aug 2020 07:15:31 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:49842 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbgHBLPb (ORCPT ); Sun, 2 Aug 2020 07:15:31 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R541e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07425;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0U4TCtAZ_1596366927; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0U4TCtAZ_1596366927) by smtp.aliyun-inc.com(127.0.0.1); Sun, 02 Aug 2020 19:15:28 +0800 From: Tianjia Zhang To: njavali@marvell.com, jejb@linux.ibm.com, martin.petersen@oracle.com, quinn.tran@cavium.com, himanshu.madhani@cavium.com Cc: GR-QLogic-Storage-Upstream@marvell.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, tianjia.zhang@alibaba.com Subject: [PATCH] scsi: qla2xxx: Remove redundant variable initialization Date: Sun, 2 Aug 2020 19:15:27 +0800 Message-Id: <20200802111527.4928-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The initialization value of `rc` is wrong. It is unnecessary to initialize `rc` variables, so remove its initialization operation. Fixes: 84905dfe78d28 ("scsi: qla2xxx: Fix TMF and Multi-Queue config") Cc: Quinn Tran Signed-off-by: Tianjia Zhang --- drivers/scsi/qla2xxx/qla_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index fbb80a043b4f..c2c0e6049da4 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -2025,7 +2025,7 @@ static void qlt_do_tmr_work(struct work_struct *work) struct qla_tgt_mgmt_cmd *mcmd = container_of(work, struct qla_tgt_mgmt_cmd, work); struct qla_hw_data *ha = mcmd->vha->hw; - int rc = EIO; + int rc; uint32_t tag; unsigned long flags; -- 2.26.2