Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1829468ybl; Sat, 25 Jan 2020 09:31:07 -0800 (PST) X-Google-Smtp-Source: APXvYqwEZ/E0jvgzx3ZKudN8nxt8pluMd/T9XzQXext+bSRu39VsLDMFABYhv5AgjXBMapJhaS1P X-Received: by 2002:aca:4d4f:: with SMTP id a76mr3084655oib.26.1579973467041; Sat, 25 Jan 2020 09:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579973467; cv=none; d=google.com; s=arc-20160816; b=VintZ/c1wdANWbXQglgH9/dWb45PCDcG206ANNO+CZGy6168Gix1Wpe9lr0t72bXB7 2q8FnvRvVG4N9L2QDgOWJCEKAd0KP/rdL3Ok57ZaPuDtZ0ge6z08aMmOs9cftBao5W+d swSPmmc8usFcMosxKYwWd9JLDmsppZ0/suMETGfM6XsZD8O7erzUW0hr+ThEFfHwv0sr ed7SlUMi0qN7yxnhGkv2qRRS3sIeDhN8bwYwrAffb6X2gogVjD4G1cNsEY43Sp4pERnH 1wzZ4VG5p2o0FgZAFE9YJ7LETdx+IoULqNFS6FeARqLNGEMLqzl9Zyc+5+OmMdWTxlXT PQNQ== 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=MB/ErMiDCqzWRhbWQz8sgwwpA/uNzcXhw/DsIF3UwFs=; b=BncMXlVJb51zlA5RkKFKTK0517nrGE+0T+oH2zQN//ISBo1IgAUS+/k9TxMpo8jhQe YzPLgqQsiS5Y0CaAIu6qeDdDoIOlB6N6MPsb/zNBAvsrFgLYFNCdbUPoXFJ7Tr9/5Pmg QOX9X+zvW9Ku9tPjTjcr5go22H2m5R3V/uPYy8r2WtTtnf4kpSD5Y/beEufRIuEGMFuC HeEvRzZmhouPg+b89LVaPqlPWsMflZqmd9Cqju1fkc9qbS4qShE//tTsVFk+1reSaSRk Xb+a0Nli3PPBq8wDYQM+akXN/2TMzxUwq6SLJJehaddQYVQoxG8To7kK7yHlt5YWzd3s V7GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O9R3zvYS; 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 p11si4678537ota.300.2020.01.25.09.30.44; Sat, 25 Jan 2020 09:31:07 -0800 (PST) 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=O9R3zvYS; 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 S1726695AbgAYR3D (ORCPT + 99 others); Sat, 25 Jan 2020 12:29:03 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42476 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgAYR3C (ORCPT ); Sat, 25 Jan 2020 12:29:02 -0500 Received: by mail-pg1-f194.google.com with SMTP id s64so2863060pgb.9; Sat, 25 Jan 2020 09:29:02 -0800 (PST) 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=MB/ErMiDCqzWRhbWQz8sgwwpA/uNzcXhw/DsIF3UwFs=; b=O9R3zvYSJE6wfmayHhWS5f4KuyT9d8QzC5nzWN/ZTM3xgFuk0/qKvNrdHRhuP9vUNM TMoHW/GxgRu2FqMaQI6KGdSBunQOpbroXqXwxdjy/wvnvx4YwO82tujf+syNHMo8PN5u fR0aXoOC+Pe0WxX/rZut9CbdTagNipMD30ToDeXTVM5oQAEjmcwrqe1yjv8HZa7V5ELg TnHLy4zsTLnUtzrQMfkkWGizPd5N/hZphQiMEz4G+uDt62zS20cRlGximu/G7Ck88hY5 SRfzYRS8/MozssZFoKqb078osZEjoauYYsZt2vjKkylPlqmK/LDvS+rGIPIkCMSgJTBP xUCQ== 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=MB/ErMiDCqzWRhbWQz8sgwwpA/uNzcXhw/DsIF3UwFs=; b=tzbI+gUMiDia+tDUkiPWq++WftpI5lx6mZHMuAqmlxc3tMY7MohpQtnJrERArVC/V6 d/d2WD4lTJ6d99tkJcvZ7jYRAuCgr3nTNf3o/GgIDv6TmCPPjHZt+M6xGx5FyEfehWUt PisHrYrfc4gKzVx2u3m7m50d7/Nu0CvLIydjDu9SwBhejKvgshtmqMRN1RW0jOWSQ28W va3Yfw4nBngedDqqcvZRkDC2WB1fNY+CaRuU07lgE9ZwVcEMAtW4CW3UePzkJ7ELqkl+ m57atOaBJLyZRxb6liAIz2OCSPllfLKv54IOOZWs5y7JsP+O6W69xFwsBniJAZvgwRHa e9aA== X-Gm-Message-State: APjAAAW583/cdo7K82XAYJFhNRdMGdDrzSamxR6QqODWEM6+MQUqT0en 5xXs+nZ4u7w3AAbzTURqscxVemGrzmlYPQ== X-Received: by 2002:aa7:83d6:: with SMTP id j22mr8969303pfn.122.1579973341692; Sat, 25 Jan 2020 09:29:01 -0800 (PST) Received: from google.com ([123.201.163.48]) by smtp.gmail.com with ESMTPSA id p18sm13123682pjo.3.2020.01.25.09.28.59 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 25 Jan 2020 09:29:01 -0800 (PST) Date: Sat, 25 Jan 2020 22:58:54 +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] scsi: isci: fix unneeded variable Message-ID: <20200125172854.GA4860@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.6.2-neo (NetBSD/sparc64) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove unneeded variable status in request.c file. Signed-off-by: Saurav Girepunje --- 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