Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3593215ybg; Mon, 28 Oct 2019 15:33:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoQiE7WLF0mejx1V3kbPeDyZ5EhRUysRvJVeoYDT97bEtrFhxtVckca/eaTJ/SMhpcxmgy X-Received: by 2002:a17:906:8417:: with SMTP id n23mr195975ejx.175.1572301985369; Mon, 28 Oct 2019 15:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572301985; cv=none; d=google.com; s=arc-20160816; b=ANeuhIdS+nEFXbheQUqcB6Mx61GJYFxg8viBjeL2pxsMhF8HR3UBtWLSeiJbhFU8SG 2paPQV/XZiwsZvweerB3k3b+UHdql2TV1QBC3MsLumXYza0ZYJPHPiR1DdryDOySM+Ap fA8r8IusmBqfZlA94MZkka/Bu9VvBIaGF6i8epkvUh+7LbQCyesjVoUEZuVuzolhC5ts oz7uY7vWJHMwiweYxPhLrI6pFMP7JgRA+GKBsWXm+d50ATGu7GFLLmanG6Qq+qM0VwiK OSH49atLdGu4ey5E1UoW8YsyTMG2Hp+84slAik7jQjqQbb/6/JH/dQ4RDiJOAiJNpSuq NMXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=1Hum32HGcrAtxzDAgbdk3CWnZkz7ktiFh+DUwCg4ZRg=; b=SW+uteQD25LVQiaxy1cR0yGiRPuopU5e9n/wVvfNC89BpJvnBDTTETT38DhNTrXasn KlmZ9fIFVNR/CjyAIjrFJbXsZ9sM6SmtjXCIdNOqgrCqBSwuIRb2P5rKx25dZ8oCciC+ L1At89QNkKu89HA8xY64qtK7j7N64EwkU0kAeJL58kZ0p/OHWsaGn9d6lOWyQ0ArNoWt RvYjwEkAGZSZYjWIiDt5JJdtN2/6m9iC1vL1O7l5NSR8z2uLshj6MjklObpAIyQcqjHg WoD1glEBpVYNcuISMAxY0josx6cndZg8QDG8BuZiRjjFvL0cukgblRQ0EKyHv/GjIenG bo9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PvIX3cpn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si7885136edd.8.2019.10.28.15.32.42; Mon, 28 Oct 2019 15:33:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PvIX3cpn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388345AbfJ1Utl (ORCPT + 99 others); Mon, 28 Oct 2019 16:49:41 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43889 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfJ1Utl (ORCPT ); Mon, 28 Oct 2019 16:49:41 -0400 Received: by mail-pf1-f194.google.com with SMTP id 3so7722474pfb.10; Mon, 28 Oct 2019 13:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=1Hum32HGcrAtxzDAgbdk3CWnZkz7ktiFh+DUwCg4ZRg=; b=PvIX3cpntw6AsPuxJ6BUXhCXcEa/4XIwybJ31Z+yIhgVmd/8pQB1DB6PiPWI9TO/xl GTGVUvfHphH7+JIbdP4OjVBV/8M46488EQLtKt5sfM2m8hRgSgtHwaORiPjhsc2FkkwT 0cXVDm24R97jcZJLQE8xQBZDMdiOI2SSCmsoQ05cSIn8CeLUPWBS9TO9xJqH06xIx3ab F3VbDotwhdhqkuOZdQYyxxMrd8qTqMfuqtCjS1I03WBdahP5Det8xFTbQ0ZkhgG83nvo a4pIzZ7YE6g+pTBNSfEGBagurogbIGhdVcdLBeMR9RMJijXXkmK57uml3ZHbtHXGQbF/ M8bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=1Hum32HGcrAtxzDAgbdk3CWnZkz7ktiFh+DUwCg4ZRg=; b=FCF6vx4yibbdubfNbTmWugDcxIwWfrWeUbdrDcvzZio3BVpdL+rsw/6Z1N0WtFtgy0 xYTi+x7ZSIQgMTyE616wOOvLzJ7svDvXxMDLkzhvHufeeuunrADvulUmdFbi6ta15+B2 6aLQk2aiOxaKsNt9x7DVfExk2lc8oF0b1bsud71z4VU8u/C5PpS3g1LscR1DCoMMET20 yAI4Ow9Xg3PRCySkbeum1U7oww6PW0CP2l+atn3qa5FXSzQM/u57L6jjNARQ6dmjRfv4 +drOdzcVVxB0DUJ1hwYvi9R3MTYBJz+8F5dnMRoMkvItGl/XyW6oSTCoMlpsfzDZcZzo adTw== X-Gm-Message-State: APjAAAXDh1lyr3/UzOqfhAcVzhK03SQ+mUT4TcpKahatZLDzQuKtNI9k LJW/V54VYkZr6poYA4H7qzE= X-Received: by 2002:a65:6203:: with SMTP id d3mr22775570pgv.272.1572295780516; Mon, 28 Oct 2019 13:49:40 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id u36sm13494485pgn.29.2019.10.28.13.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 13:49:39 -0700 (PDT) Date: Tue, 29 Oct 2019 02:19:32 +0530 From: Saurav Girepunje 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] isci: request.c: remove unneeded variable status Message-ID: <20191028204931.GA29561@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org status variable is not modified within function. Signed-off-by: Saurav Girepunje --- drivers/scsi/isci/request.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 343d24c7e788..6537fa880906 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c @@ -1480,7 +1480,6 @@ static enum sci_status 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 @@ stp_request_pio_await_h2d_completion_tc_event(struct isci_request *ireq, break; } - return status; + return SCI_SUCCESS; } static enum sci_status @@ -2103,7 +2102,6 @@ sci_io_request_frame_handler(struct isci_request *ireq, static enum sci_status stp_request_udma_await_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): @@ -2148,13 +2146,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 +2171,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, -- 2.20.1